/* Smember auth — https://smember.com.vn/login & /register */
:root {
    --smember-bg: #f0f4f9;
    --smember-red: #d70018;
    --smember-blue: #0066cc;
    --smember-blue-dark: #004d99;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.smember-auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.smember-auth-page--login {
    background: #fff;
}

.smember-auth-page--register {
    background: #fff;
}

.smember-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* —— Cột trái: nền trắng, khối promo bên trong màu #f0f4f9 —— */
.smember-auth-page--login .smember-shell,
.smember-auth-page--login .smember-panel-left,
.smember-auth-page--login .smember-panel-right {
    background: #fff;
}

.smember-panel-left {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 40px 0;
    position: relative;
    overflow: hidden;
}

.smember-left-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.smember-topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    width: 100%;
}

.smember-topnav a {
    font-size: 15px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.smember-topnav a:hover {
    color: #d70018;
}

.smember-topnav a.is-active {
    color: #d70018;
    border-bottom-color: #d70018;
}

.smember-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

a.smember-brand-pill {
    text-decoration: none;
}

a.smember-brand-pill:hover {
    opacity: 0.92;
}

.smember-brand-pill {
    display: inline-block;
    padding: 7px 16px;
    background: #d70018;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    border-radius: 6px;
    letter-spacing: -0.02em;
}

.smember-brand-pill--dtv {
    font-style: normal;
    font-weight: 700;
    text-transform: lowercase;
}

.smember-intro-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--smember-blue);
    margin-bottom: 8px;
    max-width: 480px;
}

.smember-intro-title em {
    font-style: normal;
    color: var(--smember-blue);
    font-weight: 800;
}

.smember-intro-sub {
    font-size: 15px;
    color: var(--smember-blue-dark);
    text-align: center;
    line-height: 1.45;
    margin-bottom: 24px;
    max-width: 440px;
}

.smember-benefits {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--smember-bg);
    padding: 22px 28px 18px;
    margin-bottom: 20px;
}

.smember-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #d70018;
    border-style: solid;
    pointer-events: none;
}

.smember-corner--tl { top: 0; left: 0; border-width: 3px 0 0 3px; }
.smember-corner--tr { top: 0; right: 0; border-width: 3px 3px 0 0; }
.smember-corner--bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.smember-corner--br { bottom: 0; right: 0; border-width: 0 3px 3px 0; }

.smember-benefits ul {
    list-style: none;
}

.smember-benefits li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}

.smember-benefits li:last-child {
    margin-bottom: 0;
}

.smember-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: #d70018;
    border-radius: 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 12v8H4v-8M12 22V12M12 12H7.5a2.5 2.5 0 0 1 0-5C9 7 10 7 12 7s3 0 4.5 2a2.5 2.5 0 0 1 0 5H12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

.smember-benefits strong {
    color: #d70018;
    font-weight: 700;
}

.smember-policy-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #d70018;
    text-decoration: none;
}

.smember-policy-link:hover {
    text-decoration: underline;
}

.smember-left-inner .smember-mascot {
    margin-top: auto;
    padding-top: 12px;
}

.smember-mascot {
    width: 100%;
    max-width: 460px;
    line-height: 0;
    flex-shrink: 0;
    align-self: center;
}

.smember-mascot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* —— Cột phải (panel trắng) —— */
.smember-panel-right {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    box-shadow: -1px 0 0 rgba(0, 0, 0, 0.04);
}

.smember-form-box {
    width: 100%;
    max-width: 400px;
}

.smember-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #d70018;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.smember-alert {
    background: #fce8e6;
    color: #c5221f;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.45;
}

.smember-alert--success {
    background: #e6f4ea;
    color: #137333;
}

.smember-zalo-consent {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #fff;
}

.smember-auth-page--zalo {
    position: relative;
}

.smember-zalo-consent__back {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
}

.smember-zalo-consent__card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.smember-zalo-consent__logo {
    margin-bottom: 16px;
}

.smember-zalo-consent__title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #202124;
}

.smember-zalo-consent__sub {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
    margin: 0 0 16px;
    text-align: left;
}

.smember-zalo-consent__perms {
    text-align: left;
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 14px;
    color: #3c4043;
    line-height: 1.6;
}

.smember-zalo-consent__note {
    font-size: 12px;
    color: #80868b;
    line-height: 1.45;
    margin: 0 0 24px;
    text-align: left;
}

.smember-zalo-consent__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.smember-zalo-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.smember-zalo-consent__btn--ghost {
    color: #5f6368;
    border: 1px solid #dadce0;
}

.smember-zalo-consent__btn--primary {
    background: #0068ff;
    color: #fff;
    border: 1px solid #0068ff;
}

.smember-field {
    margin-bottom: 20px;
}

.smember-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.smember-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smember-field input::placeholder {
    color: #b0b0b0;
}

.smember-field input:focus {
    border-color: #d70018;
    box-shadow: 0 0 0 2px rgba(215, 0, 24, 0.1);
}

.smember-password-wrap {
    position: relative;
}

.smember-password-wrap input {
    padding-right: 44px;
}

.smember-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smember-password-toggle:hover {
    color: #555;
}

.smember-btn-submit {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 8px;
    background: #d70018;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
}

.smember-btn-submit:hover {
    background: #c40016;
}

.smember-forgot {
    text-align: center;
    margin: 14px 0 22px;
}

.smember-forgot a {
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
}

.smember-forgot a:hover {
    text-decoration: underline;
}

.smember-or {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    position: relative;
}

.smember-or::before,
.smember-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 34%;
    height: 1px;
    background: #e8e8e8;
}

.smember-or::before { left: 0; }
.smember-or::after { right: 0; }

.smember-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.smember-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.smember-social a:hover {
    border-color: #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.smember-social img {
    flex-shrink: 0;
}

.smember-register {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 24px;
}

.smember-register a {
    color: #d70018;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.smember-register a:hover {
    text-decoration: underline;
}

.smember-foot {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.65;
}

.smember-foot a {
    color: #d70018;
    font-weight: 600;
    text-decoration: none;
}

.smember-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .smember-shell {
        grid-template-columns: 1fr;
    }

    .smember-panel-left {
        padding: 24px 20px 0;
        min-height: auto;
    }

    .smember-mascot {
        max-width: 280px;
    }

    .smember-panel-right {
        padding: 32px 20px 40px;
        border-top: 1px solid #e8e8e8;
    }
}

@media (max-width: 480px) {
    .smember-social {
        grid-template-columns: 1fr;
    }

    .smember-intro-title {
        font-size: 20px;
    }
}

/* —— Đăng ký https://smember.com.vn/register —— */
.smember-register-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 32px 20px 100px;
}

.smember-register-inner {
    width: 100%;
    max-width: 720px;
    background: #fff;
    padding: 32px 28px 28px;
}

/* Ô nhập đăng ký: viền xám khi focus, không đỏ */
.smember-auth-page--register .smember-field input:focus,
.smember-auth-page--register .smember-field input:focus-visible {
    border-color: #b8b8b8;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.smember-auth-page--register .smember-field input:invalid,
.smember-auth-page--register .smember-field input:user-invalid {
    border-color: #d9d9d9;
    box-shadow: none;
}

.smember-register-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--smember-red);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.smember-register-mascot {
    text-align: center;
    margin-bottom: 20px;
    line-height: 0;
}

.smember-register-mascot img {
    width: 120px;
    height: auto;
    display: inline-block;
}

.smember-register-social-label {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.smember-register-divider {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 24px 0 20px;
}

.smember-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.smember-form-grid {
    display: grid;
    gap: 16px 20px;
    margin-bottom: 8px;
}

.smember-form-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.smember-field-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #16a34a;
    margin-top: 6px;
    line-height: 1.4;
}

.smember-field-hint--muted {
    color: #888;
}

.smember-field-hint svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.smember-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.45;
}

.smember-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--smember-red);
}

.smember-terms {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    margin: 12px 0 20px;
}

.smember-terms a {
    color: var(--smember-red);
    text-decoration: none;
    font-weight: 600;
}

.smember-terms a:hover {
    text-decoration: underline;
}

/* Toggle + hồ sơ S-Student / Doanh nghiệp */
.smember-member-block {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: 8px;
}

.smember-toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 8px;
}

.smember-toggle-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.smember-toggle-text p {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px;
}

.smember-toggle-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--smember-red);
    text-decoration: none;
}

.smember-toggle-link:hover {
    text-decoration: underline;
}

.smember-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.smember-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.smember-switch-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 28px;
    transition: background 0.2s;
}

.smember-switch-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.smember-switch-input:checked + .smember-switch-slider {
    background: #1a73e8;
}

.smember-switch-input:checked + .smember-switch-slider::before {
    transform: translateX(20px);
}

.smember-switch-input:focus-visible + .smember-switch-slider {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.smember-member-panel {
    padding: 16px 0 8px;
}

.smember-member-panel[hidden] {
    display: none !important;
}

.smember-role-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.smember-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.smember-role input {
    accent-color: #1a73e8;
    width: 18px;
    height: 18px;
}

.smember-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    outline: none;
}

.smember-auth-page--register .smember-field select:focus {
    border-color: #b8b8b8;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.smember-upload-title {
    font-size: 15px;
    font-weight: 700;
    margin: 8px 0 6px;
}

.smember-upload-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

.smember-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.smember-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.smember-upload-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.smember-sample-link {
    font-size: 12px;
    color: var(--smember-red);
    border: 1px solid var(--smember-red);
    border-radius: 4px;
    padding: 2px 8px;
    text-decoration: none;
}

.smember-upload-drop {
    display: block;
    border: 1px dashed #c5c5c5;
    border-radius: 8px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}

.smember-upload-drop:hover {
    border-color: #999;
    background: #f5f5f5;
}

.smember-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.smember-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    pointer-events: none;
}

.smember-upload-inner em {
    color: var(--smember-red);
    font-style: normal;
    font-weight: 600;
}

.smember-upload-inner small {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

.smember-file-name {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #1a73e8;
    word-break: break-all;
}

.smember-upload-drop {
    position: relative;
}

.smember-option-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.smember-option-card__label,
.smember-option-card label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 0;
}

.smember-option-card__label input,
.smember-option-card label input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--smember-red);
    cursor: pointer;
    pointer-events: auto;
}

.smember-option-card p {
    margin: 6px 0 0 28px;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.smember-option-card a {
    color: var(--smember-red);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 28px;
    display: inline-block;
    margin-top: 4px;
}

.smember-option-card a:hover {
    text-decoration: underline;
}

.smember-register-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.smember-register-sticky-inner {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 12px;
}

.smember-btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.smember-btn-back:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.smember-register-sticky .smember-btn-submit {
    margin-top: 0;
    min-height: 48px;
}

.smember-alert ul {
    margin: 6px 0 0 18px;
}

.smember-alert li {
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .smember-form-grid--2 {
        grid-template-columns: 1fr;
    }

    .smember-register-sticky-inner {
        grid-template-columns: 1fr;
    }

    .smember-register-title {
        font-size: 22px;
    }

    .smember-benefits {
        padding: 18px 20px 16px;
    }

    .smember-upload-grid {
        grid-template-columns: 1fr;
    }
}
