/* Auth Page Styles */

/* Força textos e títulos pretos no modo claro */
:root:not([data-theme="dark"]) h1,
:root:not([data-theme="dark"]) h2,
:root:not([data-theme="dark"]) h3,
:root:not([data-theme="dark"]) p,
:root:not([data-theme="dark"]) label,
:root:not([data-theme="dark"]) span,
:root:not([data-theme="dark"]) a:not(.btn):not(button) {
    color: #000000 !important;
}

:root:not([data-theme="dark"]) .auth-header h1 {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 1rem;
}

.auth-card {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .auth-header img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header img {
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-form h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    font-family: inherit;
    text-transform: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-message {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-message.success {
    background: rgba(0, 184, 148, 0.2);
    border: 2px solid #00b894;
    color: #00d2a0;
}

.auth-message.error {
    background: rgba(255, 118, 117, 0.2);
    border: 2px solid #ff7675;
    color: #ff9999;
}

.auth-message.info {
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
    color: #a29bfe;
}

/* Responsividade */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
}

/* Footer */
footer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center;
    padding: 1.5rem 1rem !important;
    border-top: 2px solid var(--border-color) !important;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

footer p {
    color: var(--text-secondary) !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.85rem !important;
}

footer div {
    display: flex !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

footer a {
    color: var(--primary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

@media (max-height: 700px) {
    footer {
        position: relative !important;
        margin-top: 2rem !important;
    }
}

/* reCAPTCHA Badge - mover para canto discreto */
.grecaptcha-badge {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

