/* ========================================
   Moon Calendar - Auth Modal Styles
   Clean centered design (Google-only)
======================================== */

/* Overlay */
#auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#auth-modal-overlay.active {
    display: flex;
}

/* Modal Card */
.auth-modal {
    background: var(--bg-primary);
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    position: relative;
    animation: authSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.auth-close:hover {
    background: var(--border-color);
    color: var(--text-main);
}

/* Body - centered layout */
.auth-body {
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Centered Icon */
.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-purple, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Title & Subtitle */
.auth-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 280px;
}

/* Google Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-google:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Privacy Footer */
.auth-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-purple, #6366f1);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* User Avatar Button */
.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: all 0.2s;
    padding: 0;
}

.user-avatar-btn:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(203, 213, 225, 0.2);
}

.user-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-btn .avatar-initial {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

/* User Dropdown Menu */
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 200;
    display: none;
}

.user-menu.active {
    display: block;
}

.user-menu-info {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.user-menu-info .user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-menu-info .user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
    text-align: left;
}

.user-menu-item:hover {
    background: var(--border-color);
}

.user-menu-item i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-modal {
        max-width: 100%;
        border-radius: 16px;
    }

    .auth-body {
        padding: 2rem 1.5rem 1.5rem;
    }
}