/* frontend/static/css/auth/login.css */
/* Login Page Styles - Matching No-Ads Page Design */

/* ─────────────────────────────────────────────────────────────────────────────
   Wrapper & Container (Same as No-Ads Page)
   ───────────────────────────────────────────────────────────────────────────── */

.login-wrapper.sacred-bg {
    background: linear-gradient(135deg, #fdf6ff 0%, #f3eaff 100%);
    border-radius: 16px;
    max-width: 760px;
    margin: 8px auto 16px;
}

.login-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 12px 14px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Breadcrumb (Same as No-Ads Page)
   ───────────────────────────────────────────────────────────────────────────── */

.breadcrumb-nav.micro {
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 6px;
}

.breadcrumb-nav.micro a {
    color: #7b2cbf;
    text-decoration: none;
}

.breadcrumb-nav.micro a:hover {
    text-decoration: underline;
}

.breadcrumb-nav.micro .sep {
    margin: 0 4px;
    color: #bbb;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero Section - Compact (Same as No-Ads Page)
   ───────────────────────────────────────────────────────────────────────────── */

.login-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 6px 0 10px;
    text-align: center;
}

.hero-icon {
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fff 0%, #f8f4fc 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(123, 44, 191, 0.12);
    margin: 0 auto;
}

.login-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #7b2cbf;
    margin: 0;
}

.login-title::after {
    content: '';
    display: block;
    height: 2px;
    width: 36px;
    background: linear-gradient(90deg, #ffd54a, #ffd54a 60%, rgba(123,44,191,0));
    border-radius: 2px;
    margin: 4px auto 0;
    opacity: 0.9;
}

.login-subtitle {
    font-size: 0.82rem;
    color: #6b5c7b;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Login Card - Compact (Same as No-Ads Card)
   ───────────────────────────────────────────────────────────────────────────── */

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(123, 44, 191, 0.08);
    padding: 14px 16px;
    border: 1px solid rgba(123, 44, 191, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Login Options
   ───────────────────────────────────────────────────────────────────────────── */

.login-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Login Buttons - Compact
   ───────────────────────────────────────────────────────────────────────────── */

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    /* Remove mobile tap highlight (blue flash on iOS/Android) */
    -webkit-tap-highlight-color: transparent;
}

/* Remove focus ring for pointer/touch interactions */
.login-btn:focus {
    outline: none;
}

.login-btn:focus:not(:focus-visible) {
    box-shadow: none;
}

/* Keep accessible focus ring for keyboard navigation */
.login-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.3);
}

/* Google Button - Primary (Recommended) with Spiritual Glow */
.login-btn-google-primary {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: #fff;
    border: none;
    box-shadow: 
        0 2px 8px rgba(123, 44, 191, 0.25),
        0 0 12px rgba(255, 213, 74, 0.15);
    animation: spiritual-glow 2.5s ease-in-out infinite;
}

/* Spiritual golden glow animation */
@keyframes spiritual-glow {
    0%, 100% {
        box-shadow: 
            0 2px 8px rgba(123, 44, 191, 0.25),
            0 0 12px rgba(255, 213, 74, 0.15),
            0 0 20px rgba(255, 193, 7, 0.08);
    }
    50% {
        box-shadow: 
            0 4px 12px rgba(123, 44, 191, 0.35),
            0 0 18px rgba(255, 213, 74, 0.35),
            0 0 28px rgba(255, 193, 7, 0.18);
    }
}

.login-btn-google-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 6px 16px rgba(123, 44, 191, 0.4),
        0 0 24px rgba(255, 213, 74, 0.4);
    animation: none;
}

.google-icon {
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
}

/* Email Button - Secondary (Outlined) */
.login-btn-email-secondary {
    background: #fff;
    color: #7b2cbf;
    border: 1.5px solid rgba(123, 44, 191, 0.3);
}

.login-btn-email-secondary:hover {
    background: #f8f6ff;
    border-color: #7b2cbf;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(123, 44, 191, 0.12);
}

.email-icon {
    flex-shrink: 0;
    stroke: currentColor;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Divider - Compact
   ───────────────────────────────────────────────────────────────────────────── */

.login-divider {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e0f0;
}

.login-divider span {
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: #999;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Info Note - Compact
   ───────────────────────────────────────────────────────────────────────────── */

.login-info {
    text-align: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f6ff 0%, #fff 100%);
    border-radius: 8px;
    border: 1px solid rgba(123, 44, 191, 0.08);
}

.login-info p {
    font-size: 0.75rem;
    color: #6b5c7b;
    margin: 0;
    line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Error Message
   ───────────────────────────────────────────────────────────────────────────── */

.login-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #fed7d7;
    border-radius: 8px;
    margin-bottom: 10px;
}

.error-icon {
    font-size: 0.9rem;
}

.error-text {
    font-size: 0.78rem;
    color: #c53030;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Footer - Back Link
   ───────────────────────────────────────────────────────────────────────────── */

.login-footer {
    text-align: center;
    margin-top: 12px;
}

.login-footer-inline {
    text-align: center;
    padding-top: 4px;
}

.back-link {
    font-size: 0.82rem;
    color: #7b2cbf;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #5a1f8c;
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Success Message
   ───────────────────────────────────────────────────────────────────────────── */

.login-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.success-icon {
    font-size: 0.9rem;
}

.success-text {
    font-size: 0.78rem;
    color: #166534;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Form Styles (for Email OTP page)
   ───────────────────────────────────────────────────────────────────────────── */

.login-form {
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #7b2cbf;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #7b2cbf;
    box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.12);
}

.form-input::placeholder {
    color: #aaa;
    font-size: 0.8rem;
}

/* Primary Button (Submit) */
.login-btn-primary {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: #fff;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
}

.login-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .login-container {
        padding: 8px 10px 12px;
    }

    .login-card {
        padding: 12px 14px;
    }

    .login-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
}
