@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: var(--text-main);
}

/* Fundo Animado (Mesh Gradient) */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: meshFlow 20s ease infinite alternate;
}

@keyframes meshFlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.auth-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    padding: 20px;
    gap: 40px;
    align-items: center;
}

/* Seção da Marca */
.brand-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-content h1.logo img {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

.tagline h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.tagline p {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Seção do Formulário (Glassmorphism) */
.form-section {
    flex: 0 0 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Inputs */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Botão */
.auth-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.auth-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

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

/* Links */
.form-footer {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recovery-link a, .auth-switch a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.recovery-link a:hover, .auth-switch a:hover {
    color: var(--primary);
}

/* Responsividade */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
        gap: 20px;
    }
    
    .brand-section {
        padding: 20px;
        text-align: center;
    }
    
    .tagline h2 {
        font-size: 2.5rem;
    }
    
    .form-section {
        flex: none;
        width: 100%;
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .tagline h2 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 24px;
    }
}

/* Toastify Override para o tema dark */
.toastify {
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}