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

:root {
    --primary-color: #DAA520; /* Dourado Dunamis */
    --hover-color: #FFC20E;
    --bg-dark: #0D0D0D;
    --bg-card: #1b1b1b;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    overflow: hidden;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px; /* Reduzi levemente para não ocupar a tela toda */
    height: 580px;    /* Altura mais equilibrada */
    background-color: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    overflow: hidden;
    margin: 20px;
}

/* Lado Esquerdo - Branding */
.login-branding {
    flex: 1;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/logotipos_outros/01.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    border-right: 3px solid var(--primary-color);
}

.branding-content img {
    width: 180px; /* Ajustado */
    margin-bottom: 20px;
}

.branding-content h2 {
    font-family: 'Barlow', sans-serif;
    font-size: 2.8rem; /* Ajustado de 3.2 */
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.branding-content p {
    font-size: 1.4rem; /* Ajustado de 1.6 */
    color: var(--text-white);
    line-height: 1.5;
}

/* Lado Direito - Formulário */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #fafafa; 
    color: #333;
}

.form-box {
    width: 100%;
    max-width: 350px; /* Mais compacto */
}

/* LOGO MOBILE - Ajustada para não perder a cor */
.mobile-logo { display: none; }

.form-box h1 {
    font-family: 'Barlow', sans-serif;
    font-size: 2.4rem;
    color: var(--bg-dark);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 5px;
}

.login-Obs {
    font-size: .8rem;
    color: brown;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--bg-dark);
}

.input-field {
    display: flex;
    align-items: center;
    background: #eeeeee;
    border-radius: 8px;
    padding: 0 15px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.input-field:focus-within {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.2);
}

.input-field i {
    color: #999;
    font-size: 1.4rem;
}

.input-field input {
    border: none;
    background: transparent;
    padding: 12px; /* Aumentei um pouco o respiro interno */
    width: 100%;
    outline: none;
    font-size: 1.1rem;
    color: #333;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin: 15px 0 20px;
}

.forgot-pass {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-login:hover {
    background-color: #222;
    transform: translateY(-2px);
}

.form-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 1.2rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Link Administrativo - Usando suas cores */
.form-footer .admin-link {
    display: block;
    margin-top: 15px;
    color: brown;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}

.form-footer .admin-link:hover {
    color: var(--bg-dark);
}

.back-home {
    display: block;
    margin-top: 15px;
    color: #949494 !important;
    font-size: 1rem;
    text-decoration: none;
}

/* ADMIN: foco mais neutro (menos "aluno") */
.input-field:focus-within {
    border-color: #333;
    box-shadow: none;
}

/* ADMIN: observação mais séria */
.login-Obs {
    color: #a00;
    font-weight: bold;
}

/* ADMIN: botão sem dourado exagerado */
.btn-login {
    background-color: #111;
    color: var(--primary-color);
}


/* Responsividade Corrigida */
@media (max-width: 900px) {
    .login-branding { display: none; }
    .login-container { 
        max-width: 400px; 
        height: auto; 
        background-color: #fff; /* Fundo branco no mobile para a logo aparecer */
    }
    .login-form-section { padding: 40px 30px; }
    
    .mobile-logo { 
        display: block; 
        text-align: center; 
        margin-bottom: 20px; 
    }
    .mobile-logo img { 
        width: 100px; 
        filter: none; /* TIREI O INVERT para a logo ficar original */
    }
}

@media (max-width: 480px) {
    .login-container { margin: 0; border-radius: 0; height: 100vh; }
}