/* =====================================================================
   LEMINIS — LOGIN
   Estilos exclusivos da tela de login (split-screen: branding + form).
   Carregar DEPOIS do design-system.css (depende das variáveis dele).
   ===================================================================== */

html, body { height: 100%; background: var(--petrol); }

.login-shell {
    display: grid;
    grid-template-columns: 5fr 6fr;
    min-height: 100vh;
}

/* --- Lado esquerdo: branding --- */
.brand-side {
    background: var(--petrol);
    color: #fff;
    padding: 56px 56px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.brand-icon-bg {
    position: absolute;
    right: -140px;
    bottom: -90px;
    width: 680px;
    height: auto;
    color: #fff;
    opacity: 0.06;
    pointer-events: none;
}
.brand-mark { position: relative; z-index: 2; }
.brand-logo-svg {
    display: block;
    width: 220px;
    height: auto;
    color: #fff;
    margin-bottom: 14px;
}
.brand-tagline {
    font-size: 11px;
    color: var(--sand);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}
.brand-quote {
    position: relative;
    z-index: 2;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.35;
    max-width: 480px;
    margin: auto 0;
    letter-spacing: -0.2px;
    color: #fff;
}
.brand-quote b { color: var(--sand); font-weight: 500; }
.brand-footer {
    position: relative;
    z-index: 2;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

/* --- Lado direito: formulário --- */
.login-side {
    background: #fff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.login-card { width: 100%; max-width: 420px; }
.login-eyebrow {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--slate);
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--slate);
}
.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--petrol);
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin-bottom: 14px;
}
.login-sub {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-microsoft {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--petrol);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all .18s;
    box-shadow: 0 2px 8px rgba(17,46,69,0.15);
    text-decoration: none;
}
.btn-microsoft:hover {
    background: var(--petrol-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(17,46,69,0.28);
}
.btn-microsoft:active { transform: translateY(0); }
.btn-microsoft .ms-logo { width: 20px; height: 20px; flex-shrink: 0; }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 22px;
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.info-box {
    padding: 14px 16px;
    background: var(--sand-light);
    border-radius: 8px;
    border-left: 3px solid var(--sand-dark);
    font-size: 12.5px;
    color: var(--petrol);
    line-height: 1.55;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.info-box svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--petrol);
}
.info-box b { font-weight: 600; }

.alert-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fef2f2;
    border-left: 3px solid var(--danger);
    color: #991b1b;
    font-size: 13px;
    border-radius: 6px;
}

.help-link {
    margin-top: 26px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}
.help-link a {
    color: var(--petrol);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border .15s;
}
.help-link a:hover { border-bottom-color: var(--petrol); }

.login-footer {
    position: absolute;
    bottom: 24px;
    left: 0; right: 0;
    text-align: center;
    font-size: 11px;
    color: var(--gray-500);
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-side {
        padding: 32px 24px 24px;
        min-height: auto;
        gap: 18px;
    }
    .brand-logo-svg { width: 170px; }
    .brand-quote { font-size: 18px; margin: 0; max-width: 100%; }
    .brand-quote.desktop-only,
    .brand-footer.desktop-only { display: none; }
    .login-side { padding: 36px 24px 60px; }
    .login-title { font-size: 24px; }
    .login-sub { font-size: 13px; }
    .brand-icon-bg { width: 360px; right: -80px; bottom: -50px; opacity: 0.08; }
    .login-footer { position: static; margin-top: 24px; }
}
@media (max-width: 420px) {
    .brand-side { padding: 26px 20px 20px; }
    .login-side { padding: 28px 20px 50px; }
    .login-title { font-size: 22px; }
    .brand-logo-svg { width: 150px; }
}
