/* ============================================================
   MEU CONTROLE — login.css
   Auto-suficiente: não depende de variáveis do custom.css,
   pra nunca quebrar mesmo se aquele arquivo estiver
   desatualizado, em cache, ou não tiver sido publicado ainda.
   ============================================================ */

html, body {
    height: 100%;
    margin: 0;
}

body.login-page {
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.login-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ============================================================
   Painel de marca (esquerda) — some no celular
   ============================================================ */
.login-brand {
    flex: 1 1 50%;
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px;
    background: linear-gradient(135deg, #4d6df6 0%, #25409e 100%);
    color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .login-brand { display: flex; }
}

.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    pointer-events: none;
}
.login-brand::before { width: 340px; height: 340px; top: -120px; right: -100px; }
.login-brand::after  { width: 220px; height: 220px; bottom: -80px; left: -60px; }

.login-brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.login-brand-mark img { height: 48px; width: auto; display: block; }
.login-brand-mark span {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
}
.login-brand-mark span strong {
    color: #cfdcff !important;
    font-weight: 800;
}

.login-brand-tagline {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin-top: 40px;
}
.login-brand-tagline h2 {
    font-size: 28px;
    line-height: 1.35;
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 18px;
}
.login-brand-tagline p {
    color: rgba(255,255,255,0.88) !important;
    font-size: 14.5px;
}

.login-brand-features {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
}
.login-brand-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.95) !important;
    margin-bottom: 12px;
}
.login-brand-features li i {
    font-size: 16px;
    color: #ffffff !important;
}

.login-brand-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.7) !important;
}

/* ============================================================
   Painel do formulário (direita)
   ============================================================ */
.login-form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: #ffffff;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.login-mobile-logo img { height: 34px; width: auto; }

@media (min-width: 768px) {
    .login-mobile-logo { display: none; }
}

.login-card h1 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2933;
}
.login-card .login-subtitle {
    color: #67707c;
    font-size: 13.5px;
    margin-bottom: 26px;
}

.login-input-group {
    position: relative;
    margin-bottom: 14px;
}
.login-input-group > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #67707c;
    font-size: 15px;
    pointer-events: none;
}
.login-input-group input.form-control {
    padding-left: 38px !important;
    padding-right: 38px !important;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    font-size: 14px;
    padding-top: 11px;
    padding-bottom: 11px;
    background: #fbfcfe;
}
.login-input-group input.form-control:focus {
    outline: none;
    border-color: #3559e0;
    box-shadow: 0 0 0 3px rgba(53, 89, 224, 0.15);
}
.login-input-group .toggle-senha {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #67707c;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
}
.login-input-group .toggle-senha:hover { color: #3559e0; }

.login-btn-entrar {
    width: 100%;
    margin-top: 6px;
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #3559e0;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease-in-out, transform 0.15s ease-in-out;
}
.login-btn-entrar:hover { background: #25409e; transform: translateY(-1px); }

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 13px;
}
.login-links a { color: #67707c; text-decoration: none; }
.login-links a:hover { color: #3559e0; text-decoration: underline; }

.login-footer-texto {
    margin-top: 34px;
    text-align: center;
    font-size: 11.5px;
    color: #67707c;
    line-height: 1.6;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fdecec;
    color: #e4483f;
    border: 1px solid #f6c6c3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}
.login-alert i { font-size: 16px; }
