.register-section {
    margin-top: 32px;
    text-align: center;
}

.register-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.register-divider::before,
.register-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

.register-divider span {
    color: #999;
    font-size: 13px;
}

.register-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.register-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.5;
}

.btn-register {

    width: 100%;
    padding: 12px;

    border-radius: var(--radius);

    cursor: pointer;

    background: var(--surface-secondary);
    color: var(--accent-2);

    border: 1px solid var(--border-primary);

    font-weight: 600;

    transition: .2s;
}

.btn-register:hover {
    background: var(--accent-soft);
    color: var(--accent-2);
}

/* ==========================
   REGISTER MODAL
========================== */

.modal {

    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background: rgba(0, 0, 0, .45);

    z-index: 9999;

    opacity: 1;

    transition: opacity .2s ease;

}

.modal-content {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;

    background: #fff;

    border-radius: 16px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.modal-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 24px;

    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;

    font-size: 22px;

    color: #0f4c81;
}

.modal-close {
    width: 36px;

    height: 36px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    cursor: pointer;

    font-size: 22px;

    transition: .2s;
}

.modal-close:hover {
    background: #e5e7eb;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;
}

.required {
    color: #dc2626;
}

.form-group input,

.form-group select,

.form-group textarea {

    width: 100%;

    padding: 12px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    box-sizing: border-box;

    font-size: 15px;

    transition: .2s;
}

.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.form-group textarea {

    resize: vertical;

    min-height: 100px;

}

.modal-footer {

    padding: 20px 24px;

    border-top: 1px solid #eee;
}

.modal.hidden {
    display: none;
}

.modal-content {
    animation: modalShow .2s ease;
}

@keyframes modalShow {

    from {

        transform: translateY(-12px);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}

/* ==========================
   FORGOT PASSWORD
========================== */

.forgot-password {

    margin-top: 12px;

    text-align: center;

}

.btn-link {
    background: transparent;
    border: none;
    padding: 0;

    color: var(--accent-2);

    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;

    box-shadow: none;
}

.btn-link:hover {
    color: var(--accent);
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width:768px) {

    .modal-content {

        max-width: 100%;

        border-radius: 12px;
    }

    .modal-header,

    .modal-body,

    .modal-footer {

        padding: 18px;
    }

}

/* ==========================================================
   MG247 LOGIN - NHẬN DIỆN NÂU MẬT ONG / KEM
   Giao diện Login chính thức
========================================================== */

.login-page {
    min-height: 100vh;
    padding: 20px 12px;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at 15% 10%,
            rgba(214, 162, 74, .10),
            transparent 28%),
        radial-gradient(circle at 85% 90%,
            rgba(214, 162, 74, .08),
            transparent 30%),
        var(--bg);
}

/* ==========================
   KHUNG LOGIN
========================== */

.login-page .card {

    width: 390px;
    max-width: 94%;

    padding: 18px 24px 14px;

    box-sizing: border-box;

    background: var(--surface-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-lg);

    text-align: center;
}

/* ==========================
   LOGO
========================== */

.login-logo {

    width: 72px;

    height: 72px;

    margin: 0 auto 4px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    overflow: hidden;

    background: #FFF8EA;
}


.login-logo img {

    width: 72px;

    height: 72px;

    display: block;

    object-fit: contain;
}


/* ==========================
   TÊN MG247 - HIỆU ỨNG 3D
========================== */

.login-page h1 {
    margin: 0;

    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .4px;

    /* Màu nâu kem mật ong */
    color: #A86F2A;

    /* Hiệu ứng chữ nổi 3D */
    text-shadow:
        0 1px 0 #F8EBD8,
        0 2px 0 #E4C79D,
        0 3px 0 #C99A5D,
        0 4px 0 #A86F2A,
        0 6px 8px rgba(95, 58, 23, .20);
}

/* ==========================
   SUBTITLE
========================== */

.login-page input {
    width: 100%;
    height: 44px;

    box-sizing: border-box;

    margin-bottom: 10px;
    padding: 0 13px;

    background: var(--surface-input);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    color: var(--text);

    font-size: 14px;

    outline: none;
    transition: .2s;
}

.login-page input::placeholder {
    color: var(--text-muted);
}

.login-page input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(166, 124, 82, .12);
}

/* ==========================
   NÚT ĐĂNG NHẬP - NÂU KEM
========================== */

.btn-login {
    width: 100%;
    height: 44px;

    margin-top: 2px;

    border: 1px solid #D5AE78;
    border-radius: var(--radius);

    /* Nâu kem mật ong sáng */
    background:
        linear-gradient(135deg,
            #E8D0A8 0%,
            #DFC092 50%,
            #D6B27B 100%);

    /* Chữ nâu, không dùng trắng */
    color: #7A4A1A;

    font-size: 15px;
    font-weight: 700;

    box-shadow:
        0 4px 10px rgba(122, 74, 26, .10),
        inset 0 1px 0 rgba(255, 255, 255, .55);

    cursor: pointer;
    transition: .2s;
}

/* ==========================
   HIỆU ỨNG NÚT ĐĂNG NHẬP
========================== */

.btn-login:hover {
    background:
        linear-gradient(135deg,
            #EEDBBE 0%,
            #E4C99F 50%,
            #DDBB86 100%);

    color: #6F4218;

    box-shadow:
        0 6px 14px rgba(122, 74, 26, .14),
        inset 0 1px 0 rgba(255, 255, 255, .65);

    transform: translateY(-1px);
}

/* ==========================
   QUÊN MẬT KHẨU
========================== */

.forgot-password {

    margin-top: 9px;
}


.btn-link {

    color: #94652E;

    font-size: 13px;
}


/* ==========================
   APP INSTALL
========================== */

.app-install-section {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 14px;
    padding: 9px 12px;

    background:
        linear-gradient(135deg,
            var(--surface),
            var(--surface-secondary));

    border: 1px solid var(--border-primary);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    text-align: left;
}

.app-install-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--primary);
    color: var(--text-on-primary);

    font-size: 18px;
}


.app-install-content {

    flex: 1;

    min-width: 0;
}


.app-install-title {
    color: var(--accent-2);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.app-install-description {

    margin-top: 3px;

    color: #8D7862;

    font-size: 11px;

    line-height: 1.35;
}


.btn-install-app {
    flex: 0 0 auto;

    padding: 8px 11px;

    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);

    background: var(--surface-white);
    color: var(--accent-2);

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.btn-install-app:hover {
    background: var(--accent-soft);
    color: var(--accent-2);
}

/* ==========================
   VERSION
========================== */

.version {

    margin-top: 14px;

    color: #B09A82;

    font-size: 11px;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 480px) {

    .login-page {

        padding: 12px 8px;

        align-items: flex-start;

    }

    .login-page .card {

        width: 100%;

        max-width: 390px;

        margin-top: 8px;

        padding: 16px 18px 12px;

        border-radius: 18px;
    }

    .login-logo {

        width: 64px;

        height: 64px;
    }

    .login-logo img {

        width: 64px;

        height: 64px;
    }

    .login-page h1 {

        font-size: 28px;
    }

    .app-install-section {

        padding: 10px;

    }

    .app-install-description {

        font-size: 10px;

    }

}