/* Social Login Popup Styles */
.social-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.popup-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-in-out;
    margin: auto 0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-popup:hover {
    color: #333;
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #007cba;
    border-bottom-color: #007cba;
}

.tab-btn:hover {
    color: #333;
}

/* Social Buttons */
.social-buttons {
    margin-bottom: 20px;
}

.social-btn {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.2);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.google-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.2);
}

.microsoft-btn:hover {
    border-color: #00a1f1;
    box-shadow: 0 5px 15px rgba(0, 161, 241, 0.2);
}

.apple-btn:hover {
    border-color: #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* WordPress Forms */
.wp-form {
    display: none;
}

.wp-form.active {
    display: block !important;
}

#login-form.active,
#register-form.active,
#forgot-form.active,
#reset-form.active {
    display: block !important;
}

.wp-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wp-form input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.wp-form button {
    width: 100%;
    padding: 12px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-form button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.3);
}

.wp-form button:active {
    transform: translateY(0);
}

/* Form Links and Descriptions */
.form-link {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

.form-link a {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-link a:hover {
    color: #005a87;
    text-decoration: underline;
}

.form-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Forgot Password Header */
.forgot-header {
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.forgot-header h3 {
    margin: 10px 0 0 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.back-to-login {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.back-to-login:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Message */
.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login Trigger Button */
.btn-social-login {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social-login:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
    .social-popup {
        padding: 10px 0;
    }
    
    .popup-content {
        width: 95%;
        padding: 20px;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
    
    .social-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .social-btn img {
        width: 18px;
        height: 18px;
    }
    
    .wp-form input,
    .wp-form button {
        font-size: 14px;
        padding: 10px 12px;
    }
}