/* ============================================================
   LOGIN.CSS — Tela de login do painel admin
   Depende de: base.css
   ============================================================ */

body {
    background: var(--sb-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-text-active);
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    margin: 24px;
}

/* Painel esquerdo (vermelho) */
.login-aside {
    flex: 1;
    background: var(--brand);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-aside-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}
.login-aside-logo span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
}

.login-aside-tagline { color: rgba(255,255,255,0.9); }
.login-aside-tagline h2 { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.login-aside-tagline p  { font-size: 14px; line-height: 1.6; opacity: 0.8; }

/* Painel direito (form) */
.login-form-panel {
    width: 420px;
    flex-shrink: 0;
    background: #222529;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-panel h1 {
    font-size: 22px;
    font-weight: 700;
    color: #f2f3f5;
    margin-bottom: 6px;
}
.login-form-panel .subtitle {
    font-size: 14px;
    color: #a8acb3;
    margin-bottom: 32px;
}

.form-group { margin-bottom: 18px; }

.form-group .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #a8acb3;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group .form-control {
    background: #2c2f33;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 15px;
    color: #f2f3f5;
}
.form-group .form-control::placeholder { color: #6c7078; }
.form-group .form-control:focus { border-color: var(--brand); }

.btn-login {
    width: 100%;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-login:hover   { background: var(--brand-hover); }
.btn-login:active  { transform: scale(0.99); }

.alert-error {
    background: rgba(254, 0, 0, 0.12);
    border: 1px solid rgba(254, 0, 0, 0.3);
    color: #ff6b6b;
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 680px) {
    .login-aside { display: none; }
    .login-form-panel { width: 100%; }
}
