.auth-body {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
}

.login-shell {
    background-image: url('../img/login/fondo-inmo.png');
    background-position: center 55%;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
}

.login-overlay {
    background: linear-gradient(90deg, rgba(7, 28, 45, .42) 0%, rgba(11, 38, 59, .28) 46%, rgba(8, 31, 49, .62) 100%);
    inset: 0;
    position: absolute;
    z-index: -1;
}

.login-stage {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-inline: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px clamp(32px, 8vw, 132px);
    width: min(100%, 1600px);
}

.login-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(252, 252, 249, .90);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(5, 27, 44, .25);
    padding: clamp(28px, 4vw, 44px);
    width: min(100%, 440px);
}

.login-header { align-items: center; display: flex; gap: 12px; }

.brand-mark {
    align-items: center;
    background: var(--inmo-navy-900);
    border-radius: 12px;
    color: var(--inmo-gold-500);
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .82rem;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    letter-spacing: .04em;
    width: 46px;
}

.brand-name { color: var(--inmo-navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 700; letter-spacing: .04em; margin: 0; }
.brand-kicker { color: var(--inmo-muted); font-size: .68rem; font-weight: 700; letter-spacing: .13em; margin: 2px 0 0; text-transform: uppercase; }

.login-copy { margin: 34px 0 26px; }
.section-kicker { color: var(--inmo-gold-500); font-size: .72rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 8px; text-transform: uppercase; }
.login-copy h1 { color: var(--inmo-navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.login-copy > p:last-child { color: var(--inmo-muted); font-size: .96rem; margin: 10px 0 0; }

.login-error {
    align-items: flex-start;
    background: rgba(169, 75, 75, .08);
    border: 1px solid rgba(169, 75, 75, .18);
    border-radius: 12px;
    color: #873d3d;
    display: flex;
    font-size: .86rem;
    gap: 9px;
    line-height: 1.4;
    margin: 0 0 18px;
    padding: 11px 13px;
}
.login-error svg { fill: none; flex: 0 0 auto; height: 18px; margin-top: 1px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 18px; }

.login-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--inmo-graphite); font-size: .83rem; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap > svg { fill: none; height: 19px; left: 15px; pointer-events: none; position: absolute; stroke: var(--inmo-muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; top: 50%; transform: translateY(-50%); width: 19px; }
.input-wrap input {
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--inmo-border);
    border-radius: 12px;
    color: var(--inmo-graphite);
    min-height: 50px;
    outline: none;
    padding: 12px 46px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    width: 100%;
}
.input-wrap input::placeholder { color: #9ba5ad; }
.input-wrap input:focus { background: var(--inmo-white); border-color: var(--inmo-navy-700); box-shadow: var(--inmo-focus); }

.password-toggle { align-items: center; background: transparent; border: 0; border-radius: 7px; color: var(--inmo-muted); cursor: pointer; display: flex; height: 34px; justify-content: center; padding: 0; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 34px; }
.password-toggle:hover { color: var(--inmo-navy-700); }
.password-toggle svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 19px; }

.login-submit {
    align-items: center;
    background: var(--inmo-navy-900);
    border: 1px solid var(--inmo-navy-900);
    border-radius: 12px;
    color: var(--inmo-white);
    cursor: pointer;
    display: flex;
    font-size: .92rem;
    font-weight: 750;
    justify-content: center;
    margin-top: 4px;
    min-height: 52px;
    padding: 12px 20px;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
    width: 100%;
}
.login-submit svg { fill: none; height: 19px; margin-left: 8px; stroke: var(--inmo-gold-500); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 19px; }
.login-submit:hover { background: var(--inmo-navy-700); box-shadow: 0 10px 24px rgba(16, 47, 73, .18); transform: translateY(-1px); }

.login-footer { align-items: center; border-top: 1px solid rgba(111, 124, 135, .18); color: var(--inmo-muted); display: flex; font-size: .73rem; justify-content: center; margin-top: 28px; padding-top: 18px; }
.secure-dot { background: var(--inmo-success); border-radius: 50%; box-shadow: 0 0 0 3px rgba(50, 116, 92, .12); height: 6px; margin-right: 8px; width: 6px; }

@media (max-width: 700px) {
    .login-shell { background-position: 41% center; }
    .login-overlay { background: linear-gradient(180deg, rgba(7, 28, 45, .35), rgba(7, 28, 45, .58)); }
    .login-stage { justify-content: center; padding: 18px; }
    .login-card { border-radius: 20px; padding: 26px 22px; }
    .login-copy { margin: 26px 0 22px; }
    .login-footer { margin-top: 22px; }
}

@media (max-height: 720px) and (min-width: 701px) {
    .login-stage { padding-block: 18px; }
    .login-card { padding-block: 26px; }
    .login-copy { margin-block: 22px 18px; }
    .login-form { gap: 13px; }
    .login-footer { margin-top: 18px; padding-top: 14px; }
}
