/*
 * Auth Page Styles (Login / Register)
 */

.wishly-auth {
    min-height: calc(100vh - var(--w-header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--w-space-12) 0;
    position: relative;
}

.wishly-auth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--w-gradient-hero);
    pointer-events: none;
}

.wishly-auth__card {
    position: relative;
    max-width: 440px;
    width: 100%;
    padding: var(--w-space-10);
    z-index: 1;
}

.wishly-auth__header {
    text-align: center;
    margin-bottom: var(--w-space-8);
}

.wishly-auth__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--w-space-2);
    margin-bottom: var(--w-space-6);
}

.wishly-auth__title {
    font-size: var(--w-text-2xl);
    font-weight: 800;
    margin-bottom: var(--w-space-2);
}

.wishly-auth__subtitle {
    color: var(--w-text-secondary);
    font-size: var(--w-text-sm);
}

.wishly-auth__form {
    display: flex;
    flex-direction: column;
    gap: var(--w-space-5);
}

/* Google sign-in button */
.wishly-auth__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--w-space-3);
    width: 100%;
    padding: var(--w-space-3) var(--w-space-6);
    background: var(--w-bg-glass);
    border: 1px solid var(--w-border-secondary);
    border-radius: var(--w-radius-lg);
    font-size: var(--w-text-sm);
    font-weight: 600;
    color: var(--w-text-primary);
    transition: all var(--w-transition-fast);
}

.wishly-auth__google:hover {
    background: var(--w-bg-glass-hover);
    border-color: var(--w-text-tertiary);
}

.wishly-auth__google-icon {
    width: 20px;
    height: 20px;
}

/* Divider */
.wishly-auth__divider {
    display: flex;
    align-items: center;
    gap: var(--w-space-4);
    color: var(--w-text-tertiary);
    font-size: var(--w-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--w-tracking-wider);
}

.wishly-auth__divider::before,
.wishly-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--w-border-primary);
}

/* Footer link */
.wishly-auth__footer {
    text-align: center;
    margin-top: var(--w-space-6);
    font-size: var(--w-text-sm);
    color: var(--w-text-secondary);
}

.wishly-auth__footer a {
    color: var(--w-accent);
    font-weight: 600;
}

.wishly-auth__footer a:hover {
    text-decoration: underline;
}

/* ── OTP Verification Styles ─────────────────────── */
.wishly-otp-sent-info {
    text-align: center;
    padding: 16px 0 8px;
}

.wishly-otp-sent-icon {
    color: #22c55e;
    margin-bottom: 8px;
}

.wishly-otp-sent-icon svg {
    width: 32px;
    height: 32px;
}

.wishly-otp-sent-text {
    color: var(--w-text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.wishly-otp-sent-text strong {
    color: var(--w-text-primary);
}

.wishly-otp-change-email {
    background: none;
    border: none;
    color: var(--w-accent);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wishly-otp-change-email:hover {
    opacity: 0.8;
}

.wishly-otp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.wishly-otp-timer {
    color: var(--w-text-tertiary);
}

.wishly-otp-timer strong {
    color: var(--w-text-secondary);
    font-variant-numeric: tabular-nums;
}

.wishly-otp-resend {
    background: none;
    border: none;
    color: var(--w-accent);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.wishly-otp-resend:disabled {
    color: var(--w-text-tertiary);
    cursor: not-allowed;
    opacity: 0.5;
}

.wishly-otp-resend:not(:disabled):hover {
    text-decoration: underline;
}

/* ── OTP Code Input ─────────────────────────────── */
.wishly-input--otp {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    font-weight: 700;
}

.wishly-form-label__optional {
    color: var(--color-text-muted);
    font-weight: 400;
}
