﻿:root {
    --wa-bg: #0B1220;
    --wa-sidebar: #111827;
    --wa-card: #1F2937;
    --wa-gold: #C9A227;
    --wa-blue: #1D4ED8;
    --wa-text: #F9FAFB;
    --wa-muted: #CBD5E1;
    --wa-border: #334155;
    --wa-success: #16A34A;
    --wa-danger: #DC2626;
    --wa-warning: #F59E0B;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--wa-text);
    background:
        radial-gradient(circle at 18% 18%, rgba(29, 78, 216, 0.22), transparent 30%),
        radial-gradient(circle at 78% 8%, rgba(201, 162, 39, 0.15), transparent 28%),
        linear-gradient(135deg, #050816, var(--wa-bg) 48%, #020617);
    font-family: "Segoe UI", Arial, sans-serif;
}

.wa-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 56px;
    padding: 56px clamp(28px, 6vw, 88px);
    position: relative;
    overflow: hidden;
}

.wa-login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(201, 162, 39, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(201, 162, 39, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 30% 50%, black, transparent 68%);
    pointer-events: none;
}

.wa-brand-panel,
.wa-login-card {
    position: relative;
    z-index: 1;
}

.wa-brand-kicker {
    color: var(--wa-gold);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
}

.wa-brand-panel h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.wa-brand-panel h1 span {
    color: var(--wa-gold);
}

.wa-brand-copy {
    max-width: 680px;
    margin: 24px 0 34px;
    color: var(--wa-muted);
    font-size: 18px;
    line-height: 1.7;
}

.wa-benefits {
    display: grid;
    gap: 18px;
    max-width: 650px;
}

.wa-benefits article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(12px);
}

.wa-benefit-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--wa-gold);
    background: rgba(201, 162, 39, 0.10);
    border: 1px solid rgba(201, 162, 39, 0.38);
    font-weight: 800;
}

.wa-benefits strong {
    display: block;
    margin-bottom: 4px;
}

.wa-benefits p {
    margin: 0;
    color: var(--wa-muted);
    line-height: 1.5;
}

.wa-login-card {
    background:
        linear-gradient(180deg, rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 32px 95px rgba(0, 0, 0, 0.52);
}

.wa-logo-frame {
    width: 100%;
    display: grid;
    place-items: center;
    background: rgba(249, 250, 251, 0.98);
    border-radius: 22px;
    padding: 18px 22px;
    min-height: 116px;
    margin-bottom: 26px;
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.55);
}

.wa-logo-frame img {
    max-width: min(340px, 90%);
    max-height: 92px;
    object-fit: contain;
}

.wa-login-heading {
    margin-bottom: 24px;
}

.wa-system-label {
    margin: 0 0 8px;
    color: var(--wa-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
}

.wa-login-heading h2 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -0.04em;
}

.wa-login-heading p:last-child {
    margin: 8px 0 0;
    color: var(--wa-muted);
}

.wa-alert {
    background: rgba(220, 38, 38, 0.13);
    border: 1px solid rgba(220, 38, 38, 0.38);
    color: #FECACA;
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 18px;
    line-height: 1.45;
}

.wa-login-form {
    display: grid;
    gap: 13px;
}

.wa-login-form label {
    color: var(--wa-muted);
    font-weight: 700;
    font-size: 14px;
}

.wa-input {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    border: 1px solid rgba(51, 65, 85, 0.95);
    background: rgba(11, 18, 32, 0.82);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-input:focus-within {
    border-color: rgba(201, 162, 39, 0.78);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.10);
}

.wa-input span {
    display: grid;
    place-items: center;
    color: var(--wa-gold);
    font-weight: 900;
}

.wa-input input {
    width: 100%;
    height: 52px;
    border: 0;
    outline: 0;
    color: var(--wa-text);
    background: transparent;
    font-size: 15px;
}

.wa-input input::placeholder {
    color: rgba(203, 213, 225, 0.54);
}

.wa-login-form button {
    height: 54px;
    margin-top: 8px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wa-blue), #2563EB);
    color: white;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(29, 78, 216, 0.28);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.wa-login-form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.wa-forgot {
    justify-self: center;
    color: #93C5FD;
    font-size: 14px;
    text-decoration: none;
    margin-top: 4px;
}

.wa-login-footer {
    margin-top: 28px;
    text-align: center;
}

.wa-login-footer span {
    display: block;
    width: 82px;
    height: 3px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: var(--wa-gold);
}

.wa-login-footer p {
    margin: 0;
    color: var(--wa-muted);
    font-size: 13px;
}

@media (max-width: 980px) {
    .wa-login-shell {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wa-brand-panel {
        text-align: center;
    }

    .wa-brand-copy,
    .wa-benefits {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 560px) {
    .wa-login-shell {
        padding: 24px;
    }

    .wa-login-card {
        padding: 24px;
        border-radius: 24px;
    }

    .wa-benefits article {
        grid-template-columns: 1fr;
    }
}

/* WA_02E_LOGIN_BACKGROUND_HOTFIX_START */
/*
   Hotfix visual aprobado:
   - reemplaza solo el fondo azul difuminado por fondo jurídico con estatua/libros/mazo;
   - mantiene layout, textos, card, campos y botón;
   - elimina el rectángulo blanco del logo usando presentación transparente;
   - no requiere cambios en DB/IIS/servicio.
*/
body {
    background: #050816 !important;
}

.wa-login-shell {
    background:
        linear-gradient(90deg, rgba(5, 8, 22, 0.04), rgba(5, 8, 22, 0.16) 48%, rgba(5, 8, 22, 0.18)),
        url("../img/login_legal_bg_webapp_abogados_cefesp.jpg") center center / cover no-repeat !important;
}

.wa-login-shell::before {
    background:
        linear-gradient(90deg, rgba(5, 8, 22, 0.10), rgba(5, 8, 22, 0.05) 42%, rgba(5, 8, 22, 0.20)),
        radial-gradient(circle at 18% 52%, rgba(11, 18, 32, 0.06), transparent 44%),
        radial-gradient(circle at 84% 16%, rgba(201, 162, 39, 0.06), transparent 24%) !important;
    background-size: auto !important;
    mask-image: none !important;
    opacity: 1 !important;
}

.wa-login-card {
    background:
        linear-gradient(180deg, rgba(31, 41, 55, 0.91), rgba(17, 24, 39, 0.94)) !important;
    backdrop-filter: blur(14px);
}

.wa-logo-frame {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 0 10px 0 !important;
    min-height: auto !important;
    margin-bottom: 25px !important;
}

.wa-logo-frame img {
    max-width: min(330px, 84%) !important;
    max-height: 96px !important;
    object-fit: contain !important;
    filter:
        drop-shadow(0 16px 30px rgba(0, 0, 0, 0.44))
        drop-shadow(0 0 18px rgba(37, 99, 235, 0.20))
        brightness(1.12)
        contrast(1.08);
}

.wa-login-heading {
    margin-top: 0 !important;
}

/* WA_02E_LOGIN_BACKGROUND_HOTFIX_END */

/* WA_02F_WEBAPP_ABOGADOS_LOGO_HOTFIX_START */
/*
   Hotfix visual aprobado:
   - reemplaza logo CEFESP del card de login por logo WebApp Abogados;
   - conserva fondo jurídico aprobado, textos, card, campos y botón;
   - no toca DB, migraciones, IIS ni servicio;
   - no reemplaza favicon ni branding interno fuera del login visible.
*/
.wa-logo-frame.wa-logo-frame-webapp {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 0 12px 0 !important;
    min-height: auto !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    display: grid !important;
    place-items: center !important;
}

.wa-logo-frame.wa-logo-frame-webapp .wa-brand-logo-webapp {
    display: block !important;
    width: min(430px, 96%) !important;
    max-width: min(430px, 96%) !important;
    max-height: 145px !important;
    object-fit: contain !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(201, 162, 39, 0.18) !important;
    filter: none !important;
}

@media (max-width: 560px) {
    .wa-logo-frame.wa-logo-frame-webapp .wa-brand-logo-webapp {
        width: min(360px, 100%) !important;
        max-height: 122px !important;
        border-radius: 16px !important;
    }
}
/* WA_02F_WEBAPP_ABOGADOS_LOGO_HOTFIX_END */

