@font-face {
    font-family: "Kanit";
    src: url('../fonts/Kanit-Regular.ttf');
}

/* ปรับแต่งคอนเทนเนอร์ */
.register-container {
    width: 90%;
    color: white;
    position: relative;
    margin: auto;
    text-align: center;
}

/* โลโก้ */
.logo {
    margin-bottom: 20px;
}

/* กล่องแบบฟอร์ม */
.register-form-box {
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    margin: 5%  auto 0 auto; 
    position: relative;
}

/* ปรับแต่งสำหรับหน้าจอขนาดเล็ก */
@media (max-width: 480px) {
    .register-form-box {
        padding: 20px;
        max-width: 90%;
    }
}

/* ปรับแต่งสำหรับหน้าจอขนาดกลาง */
@media (max-width: 768px) {
    .register-form-box {
        max-width: 80%;
    }
}

/* หัวข้อแบบฟอร์ม */
.register-form-box h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #ccc;
}

/* ปรับแต่ง Input */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background-color: white;
    border: 1px solid #444;
    border-radius: 6px;
    text-align: center;
    color: black;
}

/* ปรับแต่ง Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    margin-top: 12px;
    font-size: 0.9rem;
}

.checkbox input {
    margin-right: 8px;
}

/* ปุ่ม */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 16px;
    cursor: pointer;
}

.btn-register {
    background-color: #f50057;
    color: white;
}

.btn-back {
    background-color: #2a2a2a;
    color: white;
    margin-top: 10px;
    border: 1px solid #444;
}

/* ข้อความข้อผิดพลาด */
.error-message {
    font-size: 0.75rem;
    color: #ff5252;
    margin-bottom: 5px;
}