/* ==========================================================================
   LOGIN MODAL STYLES - Standalone CSS for Login Modal Parity
   
   This file extracts login-specific styles from style.css to provide
   complete login modal styling without affecting other page elements.
   
   Use this in pages that need login modal functionality but have their
   own styling for other components (like prompts.html).
   ========================================================================== */

/* ==================== Login Modal Overlay ==================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    pointer-events: all !important;
}

.login-overlay.closing {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    pointer-events: none !important;
}

.login-overlay:not(.active):not(.closing) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    pointer-events: none;
}

/* ==================== Login Card ==================== */
.login-card {
    width: 360px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    z-index: 1;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);

    transform: scale(0.95);
    transition: transform 0.3s ease-out;
    pointer-events: auto !important;
}

.login-overlay.active .login-card {
    transform: scale(1);
}

/* ==================== Login Card Title (Scoped to .login-card) ==================== */
.login-card .card-title {
    font-size: 24px;
    margin-bottom: 8px;
    /* Gradient Text - Pink-Purple Theme */
    background: linear-gradient(135deg, #fff 0%, #f472b6 60%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-align: center;
}

.login-card .card-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 28px;
}

/* ==================== Form Elements Animation ==================== */
.login-overlay:not(.active) .login-card .form-view>* {
    opacity: 0;
    transform: translateY(15px);
}

.login-card .form-view>* {
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-overlay.active .login-card .form-view>* {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.login-overlay.active .login-card .form-view>*:nth-child(1) {
    transition-delay: 0.05s;
}

.login-overlay.active .login-card .form-view>*:nth-child(2) {
    transition-delay: 0.1s;
}

.login-overlay.active .login-card .form-view>*:nth-child(3) {
    transition-delay: 0.15s;
}

.login-overlay.active .login-card .form-view>*:nth-child(4) {
    transition-delay: 0.2s;
}

.login-overlay.active .login-card .form-view>*:nth-child(5) {
    transition-delay: 0.25s;
}

.login-overlay.active .login-card .form-view>*:nth-child(n+6) {
    transition-delay: 0.3s;
}

/* ==================== Mac Controls ==================== */
.login-card .mac-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.login-card .mac-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.login-card .mac-dot.red {
    background: #ff5f56;
}

.login-card .mac-dot.yellow {
    background: #ffbd2e;
    display: none;
}

.login-card .mac-dot.green {
    background: #27c93f;
    display: none;
}

.login-card .mac-dot i {
    font-size: 8px;
    color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s;
}

.login-card .mac-dot:hover i {
    opacity: 1;
}

.login-card .mac-dot:hover {
    filter: brightness(1.2);
}

/* ==================== Glass Input Fields ==================== */
.login-card .glass-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(155, 93, 229, 0.3);
    border-radius: 16px;
    padding: 18px 22px;
    color: white;
    font-size: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.login-card .glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-card .glass-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(155, 93, 229, 0.7);
    box-shadow: 0 0 0 3px rgba(155, 93, 229, 0.15), 0 0 20px rgba(168, 85, 247, 0.12);
    outline: none;
}

/* ==================== Input Group ==================== */
.login-card .input-group {
    margin-bottom: 20px;
}

/* ==================== Google Login Button ==================== */
.login-card .google-login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-card .google-login-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ==================== Divider ==================== */
.login-card .divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.login-card .divider::before,
.login-card .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.login-card .divider span {
    padding: 0 16px;
}

/* ==================== Submit Button ==================== */
.login-card .login-submit-btn {
    width: auto;
    min-width: 160px;
    max-width: 200px;
    padding: 14px 48px;
    margin: 8px auto 0 auto;
    display: block;
    border-radius: 12px;
    background: linear-gradient(135deg, #9b5de5 0%, #f15bb5 100%);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-card .login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 93, 229, 0.4);
}

/* ==================== Form Links ==================== */
.login-card .form-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.login-card .form-links a,
.login-card .forgot-link,
.login-card .back-to-login {
    color: #f472b6;
    text-decoration: none;
    transition: color 0.2s;
}

.login-card .form-links a:hover,
.login-card .forgot-link:hover {
    color: #f9a8d4;
}

/* ==================== Checkbox ==================== */
.login-card .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login-card .checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #9b5de5;
}

/* ==================== Forgot Password Link ==================== */
.login-card .forgot-link {
    display: block;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 16px;
    font-size: 13px;
}

/* ==================== Form View Visibility ==================== */
.login-card .form-view {
    display: block;
}

.login-card .form-view.hidden {
    display: none;
}

/* ==================== Mobile Responsive ==================== */
@media (max-width: 480px) {
    .login-card {
        width: 90%;
        max-width: 360px;
        padding: 32px 24px;
    }

    .login-card .card-title {
        font-size: 22px;
    }

    .login-card .login-submit-btn {
        width: 100%;
        max-width: none;
    }
}