.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.global-auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.auth-form {
    animation: fadeIn 0.3s ease-out;
}

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

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-secondary-action {
    width: 100%;
    padding: 0.65rem;
    border: 0;
    background: transparent;
    color: #bcb4ff;
    font: inherit;
    cursor: pointer;
}

.auth-secondary-action:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .auth-header h1 {
        font-size: 2.5rem;
    }
}

.turnstile-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    min-height: 0;
}

.turnstile-container:empty {
    display: none;
}

.email-verification-popup {
    margin: 1rem;
}

.password-reset-popup {
    margin: 1rem;
}

.email-verification-popup .auth-header p {
    line-height: 1.5;
    word-break: break-word;
}

.email-verification-message {
    min-height: 1.5rem;
    margin: 0.75rem 0;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.4;
}

.email-verification-message.error {
    color: #ff8f8f;
}

.email-verification-message.warning {
    color: #ffd166;
}

.email-verification-message.success {
    color: #8ff0ad;
}

.verification-resend-btn {
    background: rgba(255, 255, 255, 0.12);
    margin-top: 0.75rem;
}

.verification-resend-btn:disabled {
    opacity: 0.65;
}

@media (max-width: 480px) {
    .email-verification-popup {
        padding: 2rem;
    }

    .email-verification-popup .auth-header h1 {
        font-size: 2.2rem;
    }
}
