/* Variáveis de Cor - Paleta Gemini */
:root {
    --gemini-blue: #a8c7fa;       
    --gemini-blue-hover: #8ab4f8; 
    --gemini-active-bg: rgba(168, 199, 250, 0.12);

    /* 🌙 Paleta Dark (Gemini) */
    --bg-dark: #131314;         
    --bg-panel-dark: #1e1f20;   
    --border-dark: #444746;     
    --text-dark: #e3e3e3;       
    --text-muted-dark: #c4c7c5; 

    /* ☀️ Paleta Light */
    --bg-light: #f8f9fa;
    --bg-panel-light: #ffffff;
    --border-light: #e0e0e0;
    --text-light: #1f1f1f;
    --text-muted-light: #444746;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.arsenal-auth-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* O fundo do formulário usa a cor do painel para destacar do fundo geral */
.arsenal-auth-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: var(--bg-panel-dark);
    position: relative;
    transition: background-color 0.3s;
}

body.light-mode .arsenal-auth-content {
    background-color: var(--bg-panel-light);
}

.arsenal-auth-form-container {
    width: 100%;
    max-width: 400px;
}

.arsenal-auth-logo {
    text-align: center;
    margin-bottom: 30px; 
}

.arsenal-auth-logo h2 {
    font-size: 28px;
    margin-bottom: 5px;
    margin-top: 0;
    color: var(--gemini-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arsenal-auth-logo p {
    font-size: 14px;
    color: var(--text-muted-dark);
    margin-top: 0;
    font-weight: 600;
}

body.light-mode .arsenal-auth-logo p {
    color: var(--text-muted-light);
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

body.light-mode h3 {
    color: var(--text-light);
}

.arsenal-auth-subtitle {
    font-size: 16px;
    color: var(--text-muted-dark);
    margin-bottom: 30px;
}

body.light-mode .arsenal-auth-subtitle {
    color: var(--text-muted-light);
}

/* Estilos do Formulário */
.arsenal-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left; 
}

body.light-mode .arsenal-form label {
    color: var(--text-light);
}

/* Inputs com bordas suaves estilo Google */
.arsenal-form input[type="text"],
.arsenal-form input[type="password"],
.arsenal-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    font-size: 16px;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
    box-sizing: border-box; 
}

body.light-mode .arsenal-form input[type="text"],
body.light-mode .arsenal-form input[type="password"],
body.light-mode .arsenal-form input[type="email"] {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-light);
}

.arsenal-form input:focus {
    border-color: var(--gemini-blue);
    outline: none;
    box-shadow: 0 0 0 1px var(--gemini-blue); /* Foco mais nítido */
}

/* Botão de Submit arredondado */
.arsenal-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 24px;
    background-color: var(--gemini-blue);
    color: #131314;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.arsenal-form input[type="submit"]:hover {
    background-color: var(--gemini-blue-hover);
}

.arsenal-form input[type="submit"]:active {
    transform: scale(0.98); 
}

/* Links inferiores */
.arsenal-auth-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.arsenal-auth-links p {
    color: var(--text-muted-dark);
    margin: 10px 0;
}

body.light-mode .arsenal-auth-links p {
    color: var(--text-muted-light);
}

.arsenal-auth-links a {
    color: var(--gemini-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.arsenal-auth-links a:hover {
    color: var(--gemini-blue-hover);
    text-decoration: underline;
}

/* Botão de Alternar Tema */
.theme-toggle-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-muted-dark);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.05); 
    color: var(--text-dark);
}

body.light-mode .theme-toggle-btn {
    border-color: var(--border-light); 
    color: var(--text-muted-light);
}

/* Coluna Direita (Visual) */
.arsenal-auth-visual {
    flex: 1;
    background-image: url('https://source.unsplash.com/1600x900/?police,security,law');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.arsenal-auth-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente ajustado para harmonizar com o novo azul */
    background: linear-gradient(to bottom, rgba(19, 19, 20, 0.9), rgba(19, 19, 20, 0.6), rgba(168, 199, 250, 0.15));
}

.arsenal-auth-visual-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.arsenal-auth-visual-content h2 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.arsenal-auth-visual-content p {
    font-size: 20px;
    font-weight: 400;
    max-width: 500px;
    opacity: 0.9;
    color: #e3e3e3;
}

/* Responsividade */
@media (max-width: 900px) {
    .arsenal-auth-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .arsenal-auth-visual {
        display: none; 
    }

    .arsenal-auth-content {
        padding: 40px 20px;
        align-items: flex-start; 
        padding-top: 80px; 
    }
    
    .arsenal-auth-form-container {
        margin: auto; 
    }
}