/* Authentication Modal Styles */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    z-index: 1;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.auth-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #333;
}

/* Custom Sign-In View */
#sign-in-view {
    padding: 24px;
}

.auth-provider-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Google Sign-In Button */
.google-signin-button {
    width: 100%;
    padding: 12px 16px;
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-signin-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.google-signin-button .google-icon {
    width: 20px;
    height: 20px;
}

/* Apple Sign-In Button */
.apple-signin-button {
    width: 100%;
    padding: 12px 16px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.apple-signin-button:hover {
    background-color: #1a1a1a;
}

.apple-signin-button .apple-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Email Sign-In Button */
.email-signin-button {
    width: 100%;
    padding: 12px 16px;
    background-color: #f1f3f4;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
}

.email-signin-button:hover {
    background-color: #e8eaed;
    border-color: #c1c3c6;
}

.email-signin-button .email-icon {
    width: 20px;
    height: 20px;
    color: #5f6368;
}

/* Email/Password Form */
.email-password-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease-out;
}

.form-input-group {
    margin-bottom: 16px;
}

.form-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input-group input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.auth-error-message {
    padding: 10px 12px;
    margin-bottom: 12px;
    background-color: #fce8e6;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #d93025;
    font-size: 13px;
}

.auth-submit-button {
    width: 100%;
    padding: 12px 16px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 12px;
}

.auth-submit-button:hover {
    background-color: #1557b0;
}

.auth-submit-button:disabled {
    background-color: #dadce0;
    cursor: not-allowed;
}

.form-toggle {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.form-toggle a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.form-toggle a:hover {
    text-decoration: underline;
}

/* User Profile View */
.user-profile-info {
    padding: 24px;
    text-align: center;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.user-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.user-actions {
    padding: 0 24px 24px;
    text-align: center;
}

.user-actions button {
    width: 100%;
    max-width: 200px;
}

.btn-danger-outline {
    background-color: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background-color: #dc3545;
    color: white;
}

.delete-warning {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

/* User Profile Icon in Navbar */
.user-profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 12px;
}

.user-profile-icon:hover {
    background-color: #e0e0e0;
}

.user-profile-icon svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.user-profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.2s;
}

.user-profile-avatar:hover {
    transform: scale(1.05);
}

.user-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 400px;
    }
}

/* Mobile Responsive */
@media (max-width: 500px) {
    .auth-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }

    .auth-modal-header {
        padding: 16px 20px;
    }

    .auth-modal-header h2 {
        font-size: 20px;
    }

    #sign-in-view {
        padding: 20px;
    }

    .user-profile-info {
        padding: 20px;
    }

    .user-avatar-large {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
}

/* Forgot Password */
.forgot-password-link {
    display: block;
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #1a73e8;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.auth-success-message {
    padding: 10px 12px;
    margin-bottom: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 13px;
}

.auth-secondary-button {
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    color: #1a73e8;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.auth-secondary-button:hover {
    background-color: #f8f9fa;
}

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

#password-reset-view {
    padding: 24px;
}

/* More Options Section */
.more-options-section {
    margin-top: 12px;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}

.more-options-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 6px 8px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.more-options-toggle:hover {
    background-color: #f9fafb;
    color: #6b7280;
}

.more-options-toggle .chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.more-options-toggle.expanded .chevron-icon {
    transform: rotate(180deg);
}

.more-options-content {
    margin-top: 12px;
    padding-top: 12px;
    animation: slideDown 0.2s ease-out;
}

#delete-account-btn {
    margin-bottom: 8px;
    padding: 6px 12px;
    font-size: 12px;
    border-width: 1px;
    max-width: 160px;
    font-weight: 500;
}

.more-options-content .delete-warning {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* ============================================================================
   Email Verification Styles
   ============================================================================ */

/* Verification Success Modal */
.verification-sent-message {
    text-align: center;
    padding: 40px 20px;
}

.verification-sent-message .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.verification-sent-message h3 {
    margin: 16px 0 12px;
    color: #333;
}

.verification-sent-message .info-text {
    color: #666;
    margin: 12px 0 24px;
}

.verification-sent-message .primary-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
