/* =========================================
   IMPORTAÇÃO DE FONTES E RESET GERAL
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-body-modern {
    background-color: #f8fafc;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #121416;
}

/* =========================================
   LAYOUT SPLIT SCREEN (TELA DIVIDIDA - DESKTOP)
   ========================================= */
.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Lado Esquerdo - Branding YAMC */
.login-brand-side {
    flex: 1;
    background-color: #3a6b88;
    background-image: url('../img/bg.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.brand-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(58, 107, 136, 0.95) 0%, rgba(18, 20, 22, 0.85) 100%);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    color: #ffffff;
}

.brand-logo-img-link {
    display: inline-block;
    margin-bottom: 50px;
    transition: transform 0.3s ease;
}

.brand-logo-img-link:hover { transform: scale(1.02); }

.brand-logo-img {
    max-height: 70px;
    width: auto;
    display: block;
}

.brand-slogan {
    font-family: 'Ubuntu', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.brand-sub {
    font-size: 1.25rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Lado Direito - Formulário de Cadastro */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 40px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 550px; /* Mais largo para caber as colunas */
}

/* =========================================
   FORMULÁRIO (ESTILO SHARP & CLEAN)
   ========================================= */
.login-header h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.5rem;
    color: #121416;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.login-header p {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Sistema de Grid para duas colunas */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #121416;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    background-color: #f8fafc;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: #121416;
    border-radius: 0; /* SHARP: Zero bordas arredondadas */
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: #6f9ca7;
    background-color: #ffffff;
    box-shadow: 4px 4px 0px rgba(111, 156, 167, 0.2);
}

/* Botão GIGANTE */
.btn-login-submit {
    display: block !important;
    width: 100%;
    padding: 20px;
    background-color: #6f9ca7 !important;
    color: #ffffff !important;
    border: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 0; /* SHARP */
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.1s;
    box-sizing: border-box;
}

.btn-login-submit:hover {
    background-color: #d39ee2 !important;
}

.btn-login-submit:active {
    transform: scale(0.98);
}

/* Mensagens de Erro/Sucesso */
.msg-erro {
    background-color: #ffffff;
    color: #b91c1c;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #fca5a5;
    border-left: 8px solid #ef4444;
}

/* Footer do Formulário */
.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 1rem;
    color: #64748b;
}

.login-footer a {
    color: #121416;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid #6f9ca7;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #6f9ca7;
}

/* Logo exclusiva do Mobile */
.mobile-logo-link {
    display: none;
}

/* =========================================
   RESPONSIVIDADE (MOBILE 100% FULLSCREEN)
   ========================================= */
@media (max-width: 992px) {
    /* Esconde a imagem lateral absolutamente */
    .login-brand-side {
        display: none !important; 
    }
    
    /* Trava a tela para não vazar pro lado */
    .login-split-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        display: block;
    }

    /* O formulário ocupa a tela toda */
    .login-form-side {
        padding: 0; 
        width: 100%;
        background-color: #ffffff; 
        min-height: 100vh; 
        box-sizing: border-box;
    }
    
    .login-form-wrapper {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        background-color: #ffffff;
        padding: 40px 20px;
        box-shadow: none; 
        border-top: 6px solid #6f9ca7; 
        display: flex;
        flex-direction: column;
        justify-content: center; 
        box-sizing: border-box;
    }

    /* Quebra as colunas (Nome e Sobrenome, etc, ficam um embaixo do outro) */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Mostra a logo centralizada no topo */
    .mobile-logo-link {
        display: block;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .mobile-only-logo {
        display: inline-block;
        max-height: 55px; 
        width: auto;
    }
}

@media (max-width: 480px) {
    .login-header h2 { font-size: 2rem; }
    .login-form-wrapper { padding: 30px 15px; }
    .input-group { margin-bottom: 15px; }
}