/* RESET E FONTE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    height: 100vh;
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    background: #0f0f0f;
}

/* --- LADO ESQUERDO (MARCA E MOVIMENTO) --- */
.brand-panel {
    flex: 1.3;
    background-color: #000;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    border-right: 1px solid #333;
    overflow: hidden;
}

.moving-background {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Substitua pela sua logo se necessário */
    background-image: url("../img/logo-branca.svg");
    background-size: 150px;
    background-repeat: repeat;
    transform: rotate(-15deg);
    opacity: 0.15;
    animation: moveBackground 40s linear infinite;
    z-index: 1;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 150px 150px; }
}

.gradient-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000000 90%);
    z-index: 2;
}

.brand-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.brand-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: #fff;
}

.separator {
    width: 60px;
    height: 4px;
    background-color: #2196F3;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

/* --- LADO DIREITO (FORMULÁRIO) --- */
.form-panel {
    flex: 1;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    z-index: 4;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 40px;
    text-align: left;
}

.form-header h2 {
    font-size: 2rem;
    color: #fff;
    font-weight: 600;
}

.form-header p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* INPUTS */
.input-group { margin-bottom: 20px; }

.input-group label {
    display: block;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-field { position: relative; }

.input-field .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #555;
    background-color: #252525;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

/* LINK ESQUECEU A SENHA */
.forgot-pass-container {
    text-align: right;
    margin-top: -10px; /* Aproxima um pouco do input de senha */
    margin-bottom: 20px;
}

.link-forgot {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.link-forgot:hover {
    color: #fff;
    text-decoration: underline;
}

/* BOTÃO LOGIN */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #fff;
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-login:hover {
    background-color: #e0e0e0;
}

/* DIVISOR */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #444;
    font-size: 0.8rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.divider span { padding: 0 10px; }

/* PRIMEIRO ACESSO */
.btn-first-access {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-first-access:hover {
    border-color: #666;
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

/* ALERTA */
.alert-box {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #ff8a80;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

/* FOOTER */
.login-footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.75rem;
    color: #444;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .login-container { flex-direction: column; }
    .brand-panel { 
        flex: 0 0 180px; 
        padding: 20px; 
        align-items: center; 
        text-align: center; 
        border-right: none;
        border-bottom: 1px solid #333;
    }
    .brand-content h1 { font-size: 2.2rem; }
    .separator { display: none; }
    .moving-background { opacity: 0.05; }
}