html { scroll-behavior: smooth; }
body {
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    background: #f8fafc;
    color: #1e293b;
}
.hero-mesh {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(79, 70, 229, 0.12), transparent),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(13, 148, 136, 0.1), transparent),
        #f8fafc;
}
.gradient-text {
    background: linear-gradient(120deg, #4f46e5, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.12);
}
.auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}
.oauth-btn:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
}
.google-btn-slot {
    width: 100%;
    min-height: 44px;
}
.google-fallback-note {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.divider:not(:empty)::before { margin-right: 0.75em; }
.divider:not(:empty)::after { margin-left: 0.75em; }
#forgot-modal.hidden { display: none !important; }
#forgot-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
#forgot-modal .panel {
    max-width: 24rem;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-container {
    background: #fff;
    width: 95%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateY(16px);
    transition: transform 0.3s;
}
.modal-overlay.active .modal-container {
    transform: none;
}
.modal-header,
.modal-footer {
    padding: 1rem 1.25rem;
    border-color: #f1f5f9;
}
.modal-header {
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}
