/* ============================================
   Auto Attender AI — Login Page Theme
   Glass card on aurora gradient
   ============================================ */

:root {
    --aa-primary:        #2563eb;
    --aa-primary-dark:   #1d4ed8;
    --aa-secondary:      #7c3aed;
    --aa-accent:         #06b6d4;
    --aa-dark:           #0f172a;
    --aa-gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --glass-bg:          rgba(255, 255, 255, 0.62);
    --glass-bg-strong:   rgba(255, 255, 255, 0.78);
    --glass-border:      rgba(255, 255, 255, 0.55);
    --glass-blur:        24px;
    --glass-shadow:      0 30px 60px -15px rgba(15, 23, 42, 0.35),
                         0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--aa-dark);

    /* Aurora — same vibe as the app body, but punchier on the login */
    background:
        radial-gradient(900px 600px at 10% 0%,   rgba(37, 99, 235, 0.55), transparent 60%),
        radial-gradient(900px 600px at 90% 10%,  rgba(124, 58, 237, 0.55), transparent 60%),
        radial-gradient(1100px 700px at 50% 100%, rgba(6, 182, 212, 0.40), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-attachment: fixed;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Drifting glow blobs for life — purely decorative */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}
body::before {
    width: 420px; height: 420px;
    background: var(--aa-secondary);
    top: -120px; left: -120px;
    animation: aaFloat1 18s ease-in-out infinite;
}
body::after {
    width: 520px; height: 520px;
    background: var(--aa-primary);
    bottom: -180px; right: -160px;
    animation: aaFloat2 22s ease-in-out infinite;
}

@keyframes aaFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes aaFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-80px, -60px) scale(1.1); }
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: aaFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aaFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2.5rem 2.25rem;
    box-shadow: var(--glass-shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--aa-gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.65rem;
    margin: 0 auto 1rem;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45),
                0 0 0 6px rgba(255, 255, 255, 0.35);
}

.brand-wordmark {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--aa-dark);
    margin: 0 0 0.25rem;
    line-height: 1.1;
}
.brand-wordmark .brand-suffix {
    font-weight: 300;
    opacity: 0.65;
}

.login-header p.tagline {
    font-size: 0.92rem;
    color: #475569;
    margin: 0;
}

.form-label {
    font-weight: 500;
    color: #334155;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.input-group {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-group:focus-within {
    border-color: var(--aa-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--aa-primary);
    padding: 0.7rem 0.9rem;
}

.input-group .form-control {
    border: none;
    background: transparent;
    padding: 0.7rem 0.9rem 0.7rem 0;
    font-size: 0.95rem;
    color: var(--aa-dark);
}

.input-group .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.form-check { margin-bottom: 1.25rem; }
.form-check-label { color: #475569; font-size: 0.875rem; }

.btn-primary {
    background: var(--aa-gradient-primary);
    border: none;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    width: 100%;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.52);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42),
                0 0 0 4px rgba(37, 99, 235, 0.25);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
    color: #64748b;
}
.login-footer a {
    color: var(--aa-primary);
    text-decoration: none;
    font-weight: 500;
}
.login-footer a:hover { color: var(--aa-primary-dark); text-decoration: underline; }

.alert {
    border-radius: 0.75rem;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
}

@media (max-width: 480px) {
    .login-card    { padding: 1.75rem 1.5rem; }
    .brand-mark    { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 16px; }
    .brand-wordmark{ font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    body::before, body::after, .login-wrapper { animation: none !important; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-card { background: #ffffff; }
}
