.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    background: var(--bg-page);
}

.auth-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lux);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    transition: var(--transition);
}

.auth-card:hover {
    box-shadow: var(--shadow-floating);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-tabs {
    display: flex;
    background: var(--s-50);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.auth-tab:hover {
    color: var(--text-main);
}

.auth-tab.active {
    background: var(--bg-white);
    color: var(--primary);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.form-group-utility {
    margin-bottom: 24px;
}

.form-group-utility label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.input-utility {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    background: var(--bg-white);
    transition: var(--transition);
}

.input-utility:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.btn-auth-primary {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-auth-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* --- Forgot Password Flow --- */
.recovery-method-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    background: var(--s-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transit-smooth);
    text-align: left;
}

.recovery-method-card:hover {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.recovery-method-card .icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-right: 16px;
    box-shadow: var(--shadow-sm);
}

.recovery-method-card .text-wrap {
    flex: 1;
}

.recovery-method-card .text-wrap strong {
    display: block;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.recovery-method-card .text-wrap span {
    font-size: 13px;
    color: var(--text-muted);
}

.recovery-method-card i.fa-chevron-right {
    font-size: 14px;
    color: var(--s-300);
}

.btn-simple-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.btn-simple-back:hover { color: var(--text-main); }

/* Code Input Grid */
.code-input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.code-digit {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    background: var(--s-50);
    transition: var(--transition);
}

.code-digit:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
}

@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
    .code-digit { width: 40px; height: 50px; font-size: 20px; }
}
