.auth-wrapper {
    background: var(--card, white);
    border-radius: 32px;
    padding: 2rem 1.8rem 2.2rem;
    border: 1px solid var(--line, #e3edf7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line, #eef3fa);
    padding-bottom: 0.5rem;
}
.auth-tab {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mut, #5a6a7f);
    cursor: pointer;
    transition: 0.15s;
    text-decoration: none;
}
.auth-tab:hover {
    background: var(--card2, #f0f4fb);
    color: var(--txt, #0b1a33);
}
.auth-tab.active {
    background: var(--btn, #0b1b2f);
    color: var(--btn-fg, white);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--txt, #1f2c40);
}
.form-group label .required {
    color: #b33a4a;
}
.form-group input {
    background: var(--card2, #f8faff);
    border: 1px solid var(--line, #dee6f0);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: var(--txt, #0b1f33);
    transition: 0.15s;
    width: 100%;
}
.form-group input:focus {
    outline: 2px solid var(--focus, #b6d0fe);
    border-color: transparent;
    background: var(--card, #ffffff);
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    flex: 1;
    padding-right: 3rem;
}
.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--mut, #5a6a7f);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-toggle:hover {
    color: var(--txt, #0b1a33);
    background: var(--card2, #f0f4fb);
}
.auth-btn {
    background: var(--btn, #0b1b2f);
    color: var(--btn-fg, white);
    border: none;
    border-radius: 60px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    width: 100%;
    margin-top: 0.3rem;
}
.auth-btn:hover {
    background: var(--btn, #1e3a5e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.password-hint {
    font-size: 0.7rem;
    color: var(--mut, #5a6a7f);
    margin-top: 0.1rem;
}
.switch-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--mut, #5a6a7f);
    margin-top: 0.5rem;
}
.switch-text a {
    color: var(--acc, #2563eb);
    text-decoration: none;
    font-weight: 500;
}
.switch-text a:hover {
    text-decoration: underline;
}
.forgot-link {
    text-align: right;
    margin-top: -0.6rem;
}
.forgot-link a {
    font-size: 0.78rem;
    color: var(--acc, #2563eb);
    text-decoration: none;
}
.forgot-link a:hover {
    text-decoration: underline;
}
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--mut, #566a84);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 1.2rem 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--line, #eef3fa);
}
.auth-divider span {
    padding: 0 0.8rem;
}
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--card, #ffffff);
    color: var(--txt, #1f2c40);
    border: 1px solid var(--line, #dee6f0);
    border-radius: 60px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.15s;
}
.google-btn:hover {
    background: var(--card2, #f8faff);
    border-color: var(--line, #c7d5e6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.otp-email-locked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: var(--card2, #f8faff);
    border: 1px solid var(--line, #dee6f0);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: var(--mut, #4a5568);
}
.otp-email-locked strong {
    color: var(--txt, #0b1f33);
    font-weight: 600;
    overflow-wrap: anywhere;
}
.otp-email-locked a {
    color: var(--acc, #2563eb);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.otp-email-locked a:hover {
    text-decoration: underline;
}
.otp-instruction {
    font-size: 0.85rem;
    color: var(--mut, #4a5568);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.otp-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 1.1rem;
}
.otp-input {
    width: 54px;
    height: 60px;
    border: 1px solid var(--line, #dee6f0);
    border-radius: 16px;
    background: var(--card2, #f8faff);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--txt, #0b1f33);
    outline: none;
    transition: 0.15s;
    flex-shrink: 0;
}
.otp-input:focus {
    outline: 2px solid var(--focus, #b6d0fe);
    border-color: transparent;
    background: var(--card, #ffffff);
}
.otp-input.filled {
    border-color: var(--focus, #b6d0fe);
    background: var(--card2, #eef3fa);
}
.otp-input.invalid {
    border-color: #f3b4b4;
    background: #fdf2f2;
    color: #b91c1c;
}
.otp-top-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.otp-resend-btn {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--card2, #f0f4fb);
    color: var(--mut, #5a6a7f);
    border: 1px solid transparent;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
    transition: 0.15s;
}
.otp-resend-btn:not(:disabled) {
    background: var(--card2, #eef3fa);
    color: var(--acc, #2563eb);
    border-color: var(--line, #dbe6f2);
    cursor: pointer;
}
.otp-resend-btn:not(:disabled):hover {
    background: #e2ebf7;
    border-color: var(--line, #c7d5e6);
}
.otp-timer-chip {
    background: #fdece0;
    color: #c2410c;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 40px;
}
.otp-paste-btn {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--card2, #eef3fa);
    color: var(--acc, #2563eb);
    border: 1px solid var(--line, #dbe6f2);
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}
.otp-paste-btn:hover {
    background: #e2ebf7;
    border-color: var(--line, #c7d5e6);
}
.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.auth-btn:disabled:hover {
    background: var(--btn, #0b1b2f);
    transform: none;
    box-shadow: none;
}
@media (max-width: 600px) {
    .otp-wrapper { gap: 5px; }
    .otp-input {
        width: calc((100% - 25px) / 6);
        max-width: 44px;
        height: 50px;
        font-size: 18px;
        border-radius: 12px;
    }
    .otp-resend-btn, .otp-paste-btn {
        height: 44px;
        font-size: 0.78rem;
        padding: 0 0.6rem;
    }
}
@media (max-width: 400px) {
    .otp-input {
        max-width: 36px;
        height: 44px;
        font-size: 16px;
    }
    .otp-resend-btn, .otp-paste-btn {
        height: 40px;
        font-size: 0.7rem;
    }
}
@media (max-width: 550px) {
    .auth-wrapper { padding: 1.2rem 1rem; }
    .auth-tab { padding: 0.4rem 1rem; font-size: 0.85rem; }
}
