/* ===== ESTILOS ESPECÍFICOS PARA PÁGINA DE LOGIN ===== */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, 
        rgba(9, 227, 49, 0.08) 0%, 
        rgba(0, 0, 0, 0.95) 50%,
        rgba(9, 227, 49, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(9, 227, 49, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(9, 227, 49, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(9, 227, 49, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.auth-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(9, 227, 49, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(9, 227, 49, 0.15);
}

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

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-green), 
        transparent);
    border-radius: 3px;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-green);
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: #b0b0b0;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== FORMULÁRIO ===== */
.auth-form {
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }

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

.form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--neon-green);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--input-border);
    border-radius: 16px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    color: #666;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(9, 227, 49, 0.03);
    box-shadow: 
        0 0 0 4px rgba(9, 227, 49, 0.1),
        0 8px 25px rgba(9, 227, 49, 0.15);
    transform: translateY(-2px);
}

/* Estados de validação */
.form-group.success .form-input {
    border-color: var(--success-color);
    background: rgba(9, 227, 49, 0.05);
    box-shadow: 0 0 0 4px rgba(9, 227, 49, 0.08);
}

.form-group.error .form-input {
    border-color: var(--error-color);
    background: rgba(255, 77, 77, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.08);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    display: none;
    font-weight: 500;
    padding-left: 0.5rem;
}

/* ===== CAMPO DE SENHA ===== */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.toggle-password:hover {
    background: var(--neon-green);
    color: var(--background);
    transform: translateY(-50%) scale(1.1);
}

/* ===== OPÇÕES DO FORMULÁRIO ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #ccc;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(9, 227, 49, 0.5);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: var(--background);
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== BOTÕES ===== */
.btn-full {
    width: 100%;
    justify-content: center;
}

.btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-hover));
    color: var(--background);
    box-shadow: 
        0 8px 25px rgba(9, 227, 49, 0.4),
        0 0 0 1px rgba(9, 227, 49, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(9, 227, 49, 0.6),
        0 0 0 1px rgba(9, 227, 49, 0.3);
}

.btn-icon {
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
}

.btn-text {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

/* ===== RODAPÉ DA AUTENTICAÇÃO ===== */
.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer-text {
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: 500;
}

.link {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

.link:hover {
    color: var(--neon-green-hover);
}

.link:hover::after {
    width: 100%;
}

.link-accent {
    font-weight: 600;
}

/* ===== MENSAGENS TOAST ===== */
.toast-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast-message.show {
    transform: translateX(0);
    opacity: 1;
}

.success-message {
    background: var(--success-color);
    color: var(--background);
    border: 1px solid rgba(9, 227, 49, 0.3);
}

.error-message {
    background: var(--error-color);
    color: var(--background);
    border: 1px solid rgba(255, 77, 77, 0.3);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-text {
    font-weight: 500;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .auth-container {
        padding: 2.5rem 2rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 2.2rem;
    }
    
    .auth-subtitle {
        font-size: 1.1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .toast-message {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ===== ANIMAÇÕES DE CARREGAMENTO ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* ===== ESTADOS DE FOCO PARA ACESSIBILIDADE ===== */
.btn:focus,
.form-input:focus,
.toggle-password:focus {
    outline: 3px solid var(--neon-green);
    outline-offset: 2px;
}

/* ===== REDUÇÃO DE MOVIMENTO ===== */
@media (prefers-reduced-motion: reduce) {
    .auth-container {
        animation: none;
    }
    
    .btn,
    .form-input {
        transition: none;
    }
    
    .fa-spinner {
        animation: none;
    }
}