.register-content {
    max-width: 80%;
    margin: auto;
    padding: 20px 0;
}

.register-container {
    display: flex;
}


/* image */

.image-section {
    flex: 1;
    justify-content: center;
    margin: auto;
}

.image-section img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 15px;
    box-shadow: none;
    width: 600px;
    height: auto;
}


/* Phần form bên phải */

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.form-box {
    width: 100%;
    max-width: 520px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.welcome-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}


/* Input row cho Họ và Tên */

.input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.input-row .input-group {
    flex: 1;
    margin-bottom: 0;
}


/* Input groups */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}


/* Password wrapper */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #0d6efd;
}

.eye-icon {
    pointer-events: none;
}


/* reCAPTCHA box */

.recaptcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: #f9f9f9;
}

.recaptcha-logo {
    font-size: 11px;
    color: #999;
    text-align: right;
}


/* Terms box */

.terms-box {
    margin-bottom: 24px;
}


/* Checkbox container */

.checkbox-container {
    padding-top: 15px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    left: -14px;
    top: 0px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #0d6efd;
}

.checkbox-container input:checked~.checkmark {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}


/* Buttons */

.btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background-color: #0d6efd;
    color: white;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}


/* Login link */

.login-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #0a58ca;
    text-decoration: underline;
}


/* Responsive cho tablet và mobile */

@media (min-width: 2560px) and (max-width: 3840px) {
    .register-content {
        max-width: 50%;
    }
}

@media (min-width: 3840px) {
    .register-content {
        max-width: 30%;
    }
}

@media (max-width: 768px) {
    .register-container {
        flex-direction: column;
    }
    .form-box {
        padding: 32px 24px;
    }
    .title {
        font-size: 28px;
    }
    .welcome-text {
        font-size: 15px;
        margin-bottom: 28px;
    }
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    .input-row .input-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .form-box {
        padding: 28px 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    .title {
        font-size: 24px;
    }
    .welcome-text {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .btn {
        padding: 13px 18px;
        font-size: 15px;
    }
    .input-group {
        margin-bottom: 18px;
    }
    .input-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .input-group input {
        padding: 11px 14px;
        font-size: 14px;
    }
    .checkbox-container {
        font-size: 13px;
        padding-left: 28px;
    }
    .checkmark {
        height: 18px;
        width: 18px;
    }
    .checkbox-container .checkmark:after {
        left: 4px;
        top: 1px;
        width: 4px;
        height: 9px;
    }
    .recaptcha-box {
        padding: 12px;
    }
    .forgot-password {
        margin-bottom: 20px;
    }
    .divider {
        margin: 20px 0;
    }
}