/* ========================================
   LOGIN MODAL - Liquid Glass macOS Style
   Using the same glass effect as other panels
   ======================================== */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.login-modal {
    width: 360px;
    max-width: 90vw;
    padding: 32px;

    /* Liquid Glass Effect - same as .glass panels */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* Subtle inner glow for depth */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(255, 255, 255, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    transform: scale(0.95);
    animation: popIn 0.3s ease-out forwards;
    position: relative;
    color: #fff;
}

.login-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.login-close-btn i,
.login-close-btn svg {
    width: 16px;
    height: 16px;
}

.login-header {
    margin-bottom: 24px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #fff;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Auth Buttons - Glass style */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
}

.auth-btn i,
.auth-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: scale(0.98) translateY(0);
}

/* Primary Button */
/* Primary Button */
.auth-btn.primary {
    background: rgba(0, 122, 255, 0.8);
    color: #fff;
    border-color: rgba(0, 122, 255, 0.3);
}

.auth-btn.primary:hover {
    background: rgba(0, 122, 255, 0.9);
    /* Removed box-shadow glow */
}

/* Secondary Action Button (for Switch/Forgot) */
.auth-action-btn {
    background: transparent;
    border: 1px solid rgba(0, 122, 255, 0.3);
    color: #007AFF;
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.auth-action-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: #007AFF;
}

.auth-btn.primary i,
.auth-btn.primary svg {
    color: #fff;
}

/* Auth Form */
.auth-form {
    text-align: left;
}

.auth-form .input-group {
    margin-bottom: 14px;
}

.auth-form .input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.auth-form .auth-btn {
    margin-top: 6px;
}

.auth-form .auth-btn+.auth-btn {
    margin-top: 8px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-modal {
        padding: 24px 20px;
        margin: 16px;
    }

    .login-title {
        font-size: 1.25rem;
    }
}