:root {
    --auth-navy: #0f2744;
    --auth-navy-2: #16345c;
    --auth-gold: #c9a227;
    --auth-gold-2: #e4c56a;
    --auth-bg: #f4f7fb;
    --auth-text: #0f2744;
    --auth-muted: #64748b;
    --auth-line: #e6ebf2;
    --auth-danger: #dc2626;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, sans-serif;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(201,162,39,.18), transparent 50%),
        linear-gradient(160deg, #0b1f3a 0%, #16345c 48%, #0f2744 100%);
    color: var(--auth-text);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
    align-items: stretch;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    color: #fff;
}

.auth-brand h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.auth-brand p {
    margin: 0;
    max-width: 420px;
    color: rgba(255,255,255,.74);
    line-height: 1.6;
    font-size: 15px;
}

.auth-brand span {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(201,162,39,.16);
    color: var(--auth-gold-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
}

.auth-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
}

.auth-body .login-container {
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 28px 26px 24px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(6,18,36,.28);
}

.auth-body .login-header {
    text-align: center;
    margin-bottom: 8px;
}

.auth-body .login-header img {
    height: 58px;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 8px;
}

.auth-body .login-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    margin: 8px 0 20px;
    background: #f1f5f9;
    border-radius: 14px;
}

.auth-body .login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-body .login-tab.active {
    background: #fff;
    color: var(--auth-navy);
    box-shadow: 0 4px 14px rgba(15,39,68,.08);
}

.auth-body .login-tab-content { display: none; }
.auth-body .login-tab-content.active { display: block; }

.auth-body .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.auth-body .form-control,
.auth-body .select2-container--default .select2-selection--single {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #f8fafc;
}

.auth-body .form-control:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    background: #fff;
}

.auth-body .input-icon-wrapper { position: relative; }
.auth-body .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}
.auth-body .input-with-icon { padding-left: 40px !important; }

.auth-body .login-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.auth-body .auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.auth-body .secondary-button {
    min-height: 42px;
    border: 1px solid var(--auth-line);
    border-radius: 11px;
    background: #fff;
    color: var(--auth-navy);
    font-weight: 650;
    font-size: 13px;
}

.auth-body .tf-cart-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--auth-muted);
    font-size: 12px;
}

.auth-body .verification-code {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.auth-body .code-input {
    width: 44px;
    height: 48px;
    text-align: center;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
}

.auth-body #offline-message {
    position: fixed;
    inset: 0;
    background: rgba(15,39,68,.86);
    z-index: 99;
    align-items: center;
    justify-content: center;
    color: #fff;
}

@media (max-width: 860px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-body .login-container { max-width: 100%; }
}
