/* --- Variáveis e Reset --- */
:root {
    --primary-color: #6366f1; /* Indigo moderno */
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;       /* Slate 900 */
    --bg-surface: #1e293b;    /* Slate 800 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --focus-ring: rgba(99, 102, 241, 0.4);
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden; /* Evita scroll na tela de login desktop */
}

/* --- Layout Principal --- */
.container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* --- Lado Esquerdo (Branding) --- */
.branding-side {
    flex: 1;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo animado (Simula a IA) */
.ai-circle {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 6s infinite ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
}

.branding-side .content-wrapper {
    z-index: 1;
    max-width: 480px;
}

.branding-side h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
}

.branding-side h1 span {
    color: var(--primary-color);
    background: linear-gradient(90deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.branding-side p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Lado Direito (Formulário) --- */
.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    padding: 2rem;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-mobile h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header-mobile p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Inputs --- */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.input-field input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem 0.875rem 3rem; /* padding left maior p/ icone */
    border-radius: 0.75rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Botão de ver senha */
.eye-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.eye-btn:hover {
    color: var(--text-main);
}

/* --- Ações (Lembrar/Esqueceu) --- */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
}

.checkbox-container input {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.forgot-pass {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-pass:hover {
    color: var(--primary-hover);
}

/* --- Botões --- */
.btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-google {
    width: 100%;
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-google:hover {
    background-color: #2d3748;
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 10px;
}

.signup-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Input Wrapper (O pai relativo) --- */
.input-field {
    position: relative; /* Essencial para o botão 'absoluto' ficar preso aqui */
    display: flex;
    align-items: center;
    width: 100%;
}

/* --- O Input em si --- */
.input-field input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
    
    /* PADDING MÁGICO */
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    padding-left: 3rem;   /* Espaço para o ícone do cadeado à esquerda */
    padding-right: 3rem;  /* Espaço para o OLHO à direita (Importante!) */
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

/* --- Ícone da Esquerda (Cadeado/Email) --- */
.input-field > i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none; /* O clique passa direto pelo ícone e vai pro input */
    z-index: 10;
}

/* --- Botão do Olho (Direita) --- */
.eye-btn {
    position: absolute;
    right: 2rem; /* Distância da borda direita */
    top: 50%;       /* Posiciona o topo no meio do elemento pai */
    transform: translateY(-50%); /* Puxa 50% do próprio tamanho pra cima (Centralização Perfeita) */
    
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px; /* Aumenta a área de clique sem mudar o visual */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Feedback de clique redondinho se quiser adicionar hover bg */
    transition: color 0.2s;
    z-index: 10; /* Garante que fique acima do input */
}

.eye-btn:hover {
    color: var(--text-main);
}

/* Apenas um toque sutil para diferenciar a ação de 'Registrar' */
.ph-rocket-launch {
    font-size: 1.2rem;
}

/* Helper text para a senha */
.helper-text {
    opacity: 0.8;
    transition: color 0.3s;
}

/* --- Responsividade (Mobile) --- */
@media (max-width: 900px) {
    .branding-side {
        display: none; /* Esconde o branding em tablets/mobile para focar no login */
    }
    
    body {
        overflow-y: auto; /* Permite scroll se a tela for pequena na altura */
    }
}