.login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.login-popup-container {
    background: var(--background, #1b1e20);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    animation: popupFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--secondary, #71767b);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.login-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.login-popup-content {
    padding: 40px;
    text-align: center;
}

.login-popup-content .login-logo {
    height: 40px;
    margin-bottom: 24px;
}

.login-popup-content .sign-in {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 32px;
}

/* Reusing and adapting classes from login.css */
.login-popup-content .login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-popup-content .email-input,
.login-popup-content .password-input {
    background: #000;
    border: 1px solid var(--border, #2b2b2b);
    color: white;
    padding: 18px 16px;
    border-radius: 12px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.login-popup-content .email-input:focus,
.login-popup-content .password-input:focus {
    border-color: #666;
    outline: none;
}

.login-popup-content .password-wrapper {
    position: relative;
    width: 100%;
}

.login-popup-content .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    font-size: 16px;
}

/* Google Login Button */
.login-popup-content .google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    border: 1px solid #2b2b2b;
    cursor: pointer;
    background-color: white;
    color: #1f1f1f;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-popup-content .google-login-button:hover {
    background-color: #f8f8f8;
    transform: translateY(-1px);
}

.login-popup-content .google-icon {
    width: 20px;
    height: 20px;
}

/* Login Divider */
.login-popup-content .login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.login-popup-content .divider-line {
    flex: 1;
    height: 1px;
    background-color: #333;
}

.login-popup-content .divider-text {
    color: #666;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.login-popup-content .login-button.primary {
    background-color: #efefef;
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.login-popup-content .login-button.primary:hover {
    background-color: #fff;
}

.login-popup-content .login-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary, #71767b);
}

.login-popup-content .login-links a {
    color: var(--primary, #e9e8e2);
    text-decoration: none;
}

.login-popup-content .login-links a:hover {
    text-decoration: underline;
}

.login-popup-content .separator {
    color: var(--border, #2b2b2b);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .login-popup-container {
        border-radius: 0;
        height: 100%;
        max-width: 100%;
    }
    .login-popup-content {
        padding: 60px 24px;
    }
}
