/* Authentication System Styles for Caishenye Digital Temple */

/* User Status Container */
#userStatusAnchor {
    margin: 20px 0;
    min-height: 60px;
}

/* styles/auth.css */
/* Authentication System Styles for Caishenye Digital Temple */

/* ===== AUTHENTICATION CONTAINER ===== */
.auth-container {
    background: linear-gradient(145deg, var(--golden-yellow), var(--golden-yellow-light));
    border: 3px solid var(--vermillion);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px var(--shadow-gold);
    max-width: 500px;
    width: 100%;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--vermillion);
    flex-shrink: 0;
}

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

.user-info {
    flex-grow: 1;
}

.user-name {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--deep-red);
    margin-bottom: 5px;
}

.user-provider {
    font-size: 0.8em;
}

.provider-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.provider-badge.google { background: #4285f4; }
.provider-badge.facebook { background: #1877f2; }
.provider-badge.apple { background: #000; }
.provider-badge.email { background: var(--orange); }
.provider-badge.guest { background: var(--burgundy); }

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-btn, .logout-btn {
    padding: 8px 16px !important;
    font-size: 0.85em !important;
    min-height: auto !important;
}

.logout-btn:hover {
    background: var(--burgundy) !important;
    border-color: var(--burgundy) !important;
    color: var(--golden-yellow) !important;
}

/* ===== AUTHENTICATION MODALS ===== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, var(--golden-yellow), var(--golden-yellow-light));
    border: 4px solid var(--vermillion);
    border-radius: 15px;
    padding: 25px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--vermillion);
    padding-bottom: 15px;
}

.modal-header h3 {
    color: var(--deep-red);
    margin: 0;
    font-size: 1.3em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--vermillion);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--vermillion);
    color: var(--golden-yellow);
}

/* ===== FORM TABS ===== */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--vermillion);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--deep-red);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--vermillion);
    color: var(--golden-yellow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--deep-red);
    font-weight: bold;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--vermillion);
    border-radius: 5px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    color: var(--deep-red);
    font-family: 'Georgia', serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 5px var(--shadow-gold);
}

.auth-btn.primary {
    width: 100%;
    background: var(--vermillion);
    color: var(--golden-yellow);
    margin-top: 10px;
}

.auth-btn.primary:hover {
    background: var(--golden-yellow);
    color: var(--vermillion);
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--vermillion);
    text-align: center;
}

.auth-footer p {
    margin: 0;
    font-size: 0.8em;
    color: var(--burgundy);
    line-height: 1.4;
}

/* ===== PROFILE MODAL ===== */
.profile-content {
    text-align: center;
}

.profile-avatar {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--vermillion);
}

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

.profile-info h4 {
    color: var(--deep-red);
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.profile-info p {
    margin: 8px 0;
    color: var(--burgundy);
    font-size: 0.9em;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.privacy-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--vermillion);
    text-align: left;
}

.privacy-section h4 {
    color: var(--deep-red);
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--burgundy);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
    .auth-container {
        margin: 10px 0;
        padding: 15px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .user-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .profile-actions {
        flex-direction: column;
    }
}

@media (max-width: 320px) {
    .auth-btn {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    .modal-content {
        padding: 15px;
    }
}shadow-gold);
    max-width: 400px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--vermillion);
    padding-bottom: 15px;
}

.auth-header h3 {
    color: var(--deep-red);
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: bold;
}

.auth-header p {
    color: var(--burgundy);
    margin: 0;
    font-size: 0.9em;
    font-style: italic;
}

/* ===== AUTH OPTIONS ===== */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--vermillion);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--deep-red);
    font-size: 0.95em;
    font-weight: bold;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 45px;
}

.auth-btn:hover {
    background: var(--vermillion);
    color: var(--golden-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-icon {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

/* Provider-specific button styles */
.google-btn:hover {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
}

.facebook-btn:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.apple-btn:hover {
    background: #000;
    border-color: #000;
    color: white;
}

.email-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

.guest-btn:hover {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--golden-yellow);
}

/* ===== AUTH DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vermillion);
    opacity: 0.5;
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.8em;
    color: var(--burgundy);
    font-weight: bold;
}

/* ===== PRIVACY NOTICE ===== */
.auth-privacy {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.8em;
    color: var(--deep-red);
    text-align: center;
    line-height: 1.4;
}

/* ===== USER PROFILE ===== */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(145deg, var(--golden-yellow), var(--golden-yellow-light));
    border: 3px solid var(--vermillion);
    border-radius: 15px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px var(--
}

/* Add this to your existing styles/auth.css file */

/* ===== SIMPLIFIED AUTH ADDITIONS ===== */
.social-coming-soon {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    text-align: center;
}

.social-coming-soon p {
    margin: 0;
    color: var(--burgundy);
    font-style: italic;
}

.social-coming-soon small {
    font-size: 0.75em;
}

/* Enhanced guest session indicator */
.provider-badge.guest {
    background: var(--burgundy);
    animation: guestPulse 2s ease-in-out infinite;
}

@keyframes guestPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Disabled features styling */
input[disabled] + label,
.checkbox-label input[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-label input[disabled] + span {
    color: var(--burgundy);
    opacity: 0.7;
}

/* Success message styling */
.auth-success {
    background: rgba(34, 139, 34, 0.1);
    border: 2px solid #228B22;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    color: #006400;
    font-weight: bold;
    text-align: center;
}

/* Error message styling */
.auth-error {
    background: rgba(220, 20, 60, 0.1);
    border: 2px solid var(--vermillion);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    color: var(--deep-red);
    font-weight: bold;
    text-align: center;
}

/* Loading state for forms */
.auth-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
                               
