:root {
    --navy: #0A1A2F;
    --blue: #113A8C;
    --blue-deep: #071324;
    --blue-soft: #163F95;
    --gold: #D6AF37;
    --gold-light: #F3C86A;
    --white: #F5F7FA;
    --gray: #AAB2BF;
    --danger: #DC3545;
    --success: #198754;
    --warning: #F0AD4E;
    --ink: #152033;
    --muted: #697586;
    --line: rgba(170, 178, 191, 0.28);
    --panel: #FFFFFF;
    --shadow: 0 24px 70px rgba(7, 19, 36, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, Montserrat, Arial, sans-serif;
    color: var(--ink);
    background: #EEF2F8;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy);
    box-shadow: 0 14px 30px rgba(214, 175, 55, 0.24);
}

.button-ghost {
    color: var(--white);
    border-color: rgba(245, 247, 250, 0.22);
    background: rgba(245, 247, 250, 0.06);
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(170, 178, 191, 0.36);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    outline: none;
}

.form-control:focus,
input:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(214, 175, 55, 0.16);
}

label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.badge,
.product-chip,
.env-chip,
.topbar-env {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.badge-gold,
.product-chip {
    background: rgba(214, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(214, 175, 55, 0.34);
}

.badge-blue {
    background: rgba(17, 58, 140, 0.14);
    color: #DCE7FF;
    border: 1px solid rgba(170, 178, 191, 0.22);
}

.badge-warning {
    background: rgba(240, 173, 78, 0.17);
    color: #83570F;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.alert button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.12);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.22);
}

.alert-warning {
    background: rgba(240, 173, 78, 0.15);
    color: #775010;
    border: 1px solid rgba(240, 173, 78, 0.28);
}

.card,
.panel,
.kpi-card,
.login-card,
.error-page {
    border: 1px solid rgba(170, 178, 191, 0.22);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

/* Login */
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(17, 58, 140, 0.92), transparent 32%),
        radial-gradient(circle at 88% 14%, rgba(214, 175, 55, 0.24), transparent 26%),
        linear-gradient(135deg, #050C18 0%, var(--navy) 42%, #0B2358 100%);
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 16%, rgba(17, 58, 140, 0.72), transparent 31%),
        radial-gradient(circle at 82% 20%, rgba(214, 175, 55, 0.18), transparent 24%),
        radial-gradient(circle at 42% 86%, rgba(17, 58, 140, 0.34), transparent 30%),
        linear-gradient(135deg, #050C18 0%, var(--navy) 48%, #0B2358 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow-x: hidden;
}

.login-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 420px;
    gap: 40px;
    align-items: center;
}

.login-brand-panel {
    position: relative;
    min-width: 0;
    color: var(--white);
}

.login-brand-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 24px;
}

.login-brand-lockup {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: block;
}

.login-env-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(214, 175, 55, 0.34);
    background: rgba(214, 175, 55, 0.12);
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
}

.login-brand-panel h1 {
    max-width: 720px;
    margin: 22px 0 16px;
    color: var(--white);
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-size: clamp(2.05rem, 4.6vw, 4rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.login-brand-panel p {
    max-width: 620px;
    margin: 0;
    color: rgba(245, 247, 250, 0.78);
    font-size: 1.02rem;
    line-height: 1.68;
}

.login-orbit {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.95;
    margin-top: 28px;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.28));
}

.login-card {
    width: 100%;
    max-width: 420px;
    display: grid;
    gap: 18px;
    justify-self: end;
    border-radius: 24px;
    padding: 32px;
    background: rgba(245, 247, 250, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.login-card-heading {
    display: grid;
    gap: 7px;
}

.login-card-logo {
    width: 92px;
    height: auto;
    display: block;
    margin-bottom: 18px;
}

.form-kicker {
    margin: 0;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0;
    color: var(--navy);
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-size: 1.62rem;
}

.login-card-heading span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.login-card .form-control {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border-radius: 12px;
    padding: 0 14px;
    box-sizing: border-box;
}

.btn-login {
    width: 100%;
    height: 50px;
    min-height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F3C86A, #D6AF37);
}

/* App shell */
.app-body {
    background:
        radial-gradient(circle at 82% 0%, rgba(17, 58, 140, 0.12), transparent 28%),
        #EEF2F8;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 18px;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(17, 58, 140, 0.28), rgba(10, 26, 47, 0)),
        var(--navy);
    border-right: 1px solid rgba(214, 175, 55, 0.18);
}

.sidebar-brand {
    display: block;
    padding: 8px 8px 2px;
}

.sidebar-brand img {
    width: 210px;
}

.brand-subtitle {
    margin: 10px 8px 12px;
    color: rgba(245, 247, 250, 0.68);
    font-size: 0.82rem;
}

.env-chip {
    margin: 0 8px 20px;
    color: var(--gold-light);
    border: 1px solid rgba(214, 175, 55, 0.26);
    background: rgba(214, 175, 55, 0.1);
}

.sidebar-nav {
    display: grid;
    gap: 5px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 13px;
    border-radius: 8px;
    color: rgba(245, 247, 250, 0.78);
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    color: var(--gold-light);
    background: linear-gradient(90deg, rgba(214, 175, 55, 0.17), rgba(17, 58, 140, 0.16));
    transform: translateX(2px);
}

.main-area {
    min-width: 0;
}

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(18px, 3vw, 34px);
    color: var(--white);
    background: rgba(7, 19, 36, 0.96);
    border-bottom: 1px solid rgba(214, 175, 55, 0.14);
}

.topbar-context {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-context img {
    width: 36px;
    flex: 0 0 auto;
}

.topbar-label {
    display: block;
    margin-bottom: 3px;
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.topbar-context strong {
    display: block;
    overflow: hidden;
    color: var(--white);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.user-name {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(245, 247, 250, 0.86);
    font-weight: 800;
}

.topbar-env {
    color: var(--gold-light);
    background: rgba(214, 175, 55, 0.12);
}

.content {
    display: grid;
    gap: 22px;
    padding: clamp(18px, 3vw, 34px);
}

/* Dashboard */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
    gap: 24px;
    align-items: center;
    padding: clamp(26px, 4vw, 46px);
    color: var(--white);
    border-radius: 18px;
    background:
        radial-gradient(circle at 75% 32%, rgba(214, 175, 55, 0.2), transparent 30%),
        linear-gradient(135deg, #071324 0%, var(--navy) 44%, var(--blue) 100%);
    box-shadow: 0 32px 90px rgba(7, 19, 36, 0.28);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 18px 0 12px;
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 4.1rem);
    line-height: 1.03;
    letter-spacing: 0;
}

.hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(245, 247, 250, 0.82);
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-asset {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    justify-self: end;
    opacity: 0.92;
    filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.25));
}

.project-lock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 20px;
    align-items: center;
    padding: 22px;
    color: var(--navy);
    border: 1px solid rgba(214, 175, 55, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(214, 175, 55, 0.14), rgba(255, 255, 255, 0.86)),
        var(--panel);
    box-shadow: 0 18px 48px rgba(10, 26, 47, 0.08);
}

.project-lock h2 {
    margin: 0 0 6px;
    font-size: 1.12rem;
}

.project-lock p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.project-select span {
    color: var(--navy);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 20px;
}

.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 58, 140, 0.06), transparent 55%);
}

.kpi-card img {
    position: absolute;
    right: 10px;
    bottom: -6px;
    width: 92px;
    opacity: 0.18;
}

.kpi-card span,
.panel p {
    position: relative;
    color: var(--muted);
    font-weight: 800;
}

.kpi-card strong {
    position: relative;
    color: var(--navy);
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel {
    padding: 22px;
}

.panel-wide {
    grid-column: 1 / -1;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel h2 {
    margin: 0;
    color: var(--navy);
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-size: 1.18rem;
}

.expense-map {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.expense-map span {
    min-height: 64px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(17, 58, 140, 0.14);
    border-radius: 10px;
    color: var(--navy);
    background:
        linear-gradient(180deg, rgba(245, 247, 250, 0.98), rgba(235, 240, 248, 0.98));
    font-weight: 900;
    text-align: center;
}

.pending-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pending-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(170, 178, 191, 0.24);
}

.pending-list li:last-child {
    border-bottom: 0;
}

.pending-list span {
    color: var(--ink);
    font-weight: 900;
}

.pending-list strong {
    color: var(--blue);
    font-size: 0.88rem;
    text-align: right;
}

.elo-card {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 88% 18%, rgba(214, 175, 55, 0.2), transparent 30%),
        linear-gradient(135deg, var(--navy), var(--blue));
}

.elo-card h2,
.elo-card strong {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.elo-card strong {
    display: block;
    max-width: 320px;
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
}

.elo-card p {
    position: relative;
    z-index: 1;
    max-width: 300px;
    color: rgba(245, 247, 250, 0.76);
}

.elo-card-mark {
    position: absolute;
    right: 18px;
    bottom: 14px;
    width: 118px;
    opacity: 0.22;
}

.error-page {
    max-width: 640px;
    display: grid;
    gap: 14px;
    padding: 32px;
}

.error-page img {
    width: 50px;
}

.error-page h1 {
    margin: 0;
    color: var(--navy);
}

.error-page p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .sidebar-brand img {
        width: 190px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 940px) {
    .login-shell,
    .app-shell,
    .hero,
    .project-lock,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .hero-asset {
        justify-self: start;
        width: min(300px, 80vw);
    }
}

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

    .login-brand-lockup {
        max-width: 420px;
    }

    .login-card {
        justify-self: stretch;
        max-width: 100%;
    }
}

@media (max-width: 680px) {
    .login-page,
    .content {
        padding: 18px;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-card {
        justify-self: stretch;
        max-width: 100%;
        padding: 22px;
    }

    .topbar,
    .user-menu,
    .panel-heading,
    .pending-list li {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar {
        padding: 16px 18px;
    }

    .sidebar-nav,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 24px;
    }

    .user-name,
    .topbar-context strong {
        max-width: 100%;
        white-space: normal;
    }
}

/* === POSIELO PRESTCONT V0.3R - LOGIN RESGATE === */

* {
  box-sizing: border-box;
}

body.login-page,
.login-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(17, 58, 140, .55), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(214, 175, 55, .18), transparent 30%),
    linear-gradient(135deg, #071322 0%, #0A1A2F 48%, #06101D 100%);
  color: #F5F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  overflow-x: hidden;
}

.login-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.login-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 420px;
  gap: 42px;
  align-items: center;
}

.login-brand-panel {
  min-width: 0;
  padding: 28px 0;
}

.login-brand-lockup {
  width: min(560px, 100%);
  max-height: 220px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 28px;
}

.login-title {
  max-width: 720px;
  margin: 0 0 14px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #F5F7FA;
}

.login-title strong {
  color: #D6AF37;
  font-weight: 900;
}

.login-subtitle {
  max-width: 620px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(245,247,250,.78);
}

.login-orbit {
  width: min(430px, 88%);
  margin-top: 28px;
  opacity: .96;
  filter: drop-shadow(0 20px 45px rgba(214,175,55,.16));
}

.login-card {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  border-radius: 28px;
  padding: 34px;
  background: rgba(245, 247, 250, .97);
  color: #17211F;
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.72);
}

.login-card-logo {
  width: 96px;
  border-radius: 24px;
  margin-bottom: 18px;
  box-shadow: 0 16px 38px rgba(10,26,47,.18);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(214,175,55,.16);
  color: #7A5B09;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-card h1,
.login-card-title {
  margin: 0 0 6px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  color: #0A1A2F;
}

.login-card-text {
  margin: 0 0 24px;
  color: #5F6B7A;
  font-size: 14px;
  line-height: 1.5;
}

.login-alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: #FDECEC;
  color: #B42318;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid #FAC5C5;
}

.login-form-group {
  margin-bottom: 16px;
}

.login-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0A1A2F;
  margin-bottom: 7px;
}

.login-form-group input,
.login-card input[type="email"],
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  height: 50px;
  border: 1px solid #D8DEE8;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 15px;
  color: #0A1A2F;
  background: #FFFFFF;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login-form-group input:focus,
.login-card input:focus {
  border-color: #D6AF37;
  box-shadow: 0 0 0 4px rgba(214,175,55,.18);
}

.login-submit,
.login-card button[type="submit"] {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #F3C86A 0%, #D6AF37 55%, #B8871D 100%);
  color: #0A1A2F;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(214,175,55,.28);
}

.login-submit:hover,
.login-card button[type="submit"]:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.login-footer-note {
  margin-top: 18px;
  font-size: 12px;
  color: #7A8494;
  text-align: center;
}

@media (max-width: 920px) {
  .login-page {
    padding: 24px;
    align-items: flex-start;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .login-card {
    max-width: 100%;
    justify-self: stretch;
  }

  .login-brand-lockup {
    width: min(430px, 100%);
  }

  .login-orbit {
    width: min(340px, 100%);
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 18px;
  }

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

  .login-card-logo {
    width: 76px;
  }
}

/* === POSIELO PRESTCONT V0.3B - LOGIN PROFISSIONAL === */

* {
  box-sizing: border-box;
}

body.login-page,
.login-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 20%, rgba(17, 58, 140, .62), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(214, 175, 55, .14), transparent 30%),
    linear-gradient(135deg, #071322 0%, #0A1A2F 52%, #06101D 100%);
  color: #F5F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  overflow: hidden;
}

.login-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 54px;
  align-items: center;
  position: relative;
}

.login-visual {
  position: relative;
  min-height: 560px;
  padding: 38px 0;
  overflow: hidden;
}

.login-brand-mini {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 54px;
}

.login-brand-symbol {
  width: 78px;
  border-radius: 20px;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.24));
}

.login-brand-wordmark {
  width: 310px;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}

.login-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: #D6AF37;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0;
  max-width: 620px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  color: #F5F7FA;
}

.login-copy h1::after {
  content: "";
  display: block;
  width: 110px;
  height: 4px;
  margin-top: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F3C86A, #D6AF37);
}

.login-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(245,247,250,.78);
  font-size: 16px;
  line-height: 1.68;
}

.login-orbit-bg {
  position: absolute;
  left: 88px;
  bottom: -26px;
  width: 420px;
  opacity: .56;
  z-index: 1;
  filter: drop-shadow(0 24px 58px rgba(214,175,55,.10));
  pointer-events: none;
}

.login-card {
  width: 100%;
  border-radius: 30px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,247,250,.94));
  color: #0A1A2F;
  border: 1px solid rgba(255,255,255,.70);
  box-shadow:
    0 34px 90px rgba(0,0,0,.35),
    0 0 0 1px rgba(214,175,55,.08);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #F3C86A, #D6AF37, #113A8C);
}

.login-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.login-card-symbol {
  width: 64px;
  border-radius: 17px;
  box-shadow: 0 14px 30px rgba(10,26,47,.18);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(214,175,55,.16);
  color: #7A5B09;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0 0 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
  color: #0A1A2F;
}

.login-card p {
  margin: 0 0 26px;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.login-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FDECEC;
  color: #B42318;
  border: 1px solid #FAC5C5;
  font-size: 13px;
}

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

.login-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #0A1A2F;
  font-size: 13px;
  font-weight: 800;
}

.login-form-group input,
.password-field input {
  width: 100%;
  height: 50px;
  border: 1px solid #D8DEE8;
  border-radius: 15px;
  padding: 0 14px;
  background: #FFFFFF;
  color: #0A1A2F;
  font-size: 15px;
  outline: none;
}

.login-form-group input:focus,
.password-field input:focus {
  border-color: #D6AF37;
  box-shadow: 0 0 0 4px rgba(214,175,55,.18);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: rgba(10,26,47,.06);
  color: #0A1A2F;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.remember-email {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 22px;
  color: #475467;
  font-size: 13px;
  cursor: pointer;
}

.remember-email input {
  width: 16px;
  height: 16px;
  accent-color: #D6AF37;
}

.login-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #F3C86A 0%, #D6AF37 58%, #C7921A 100%);
  color: #0A1A2F;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(214,175,55,.30);
}

.login-submit:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.login-footer-note {
  margin-top: 20px;
  color: #7A8494;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 960px) {
  .login-page {
    overflow-y: auto;
    padding: 28px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }

  .login-visual {
    min-height: auto;
    padding: 10px 0 0;
  }

  .login-brand-mini {
    margin-bottom: 30px;
  }

  .login-copy h1 {
    font-size: 44px;
  }

  .login-orbit-bg {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(340px, 100%);
    margin-top: 22px;
  }

  .login-card {
    max-width: 520px;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 20px;
  }

  .login-brand-symbol {
    width: 58px;
  }

  .login-brand-wordmark {
    width: 235px;
  }

  .login-copy h1 {
    font-size: 34px;
  }

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

/* === POSIELO PRESTCONT V0.3B-2 - LOGIN IGUAL REFERENCIA === */

body.login-page,
.login-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 26%, rgba(17, 58, 140, .62), transparent 32%),
    radial-gradient(circle at 52% 72%, rgba(214, 175, 55, .12), transparent 24%),
    linear-gradient(135deg, #071322 0%, #071C3A 48%, #020711 100%);
  color: #F5F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 54px;
  overflow: hidden;
}

body.login-page::before {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  width: 280px;
  height: 280px;
  background: repeating-linear-gradient(135deg, rgba(214,175,55,.12) 0 1px, transparent 1px 13px);
  opacity: .38;
  pointer-events: none;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.login-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.login-shell {
  width: min(1210px, 100%);
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 535px);
  gap: 74px;
  align-items: center;
  position: relative;
}

.login-visual {
  position: relative;
  min-height: 650px;
  padding: 24px 0 0;
  overflow: visible;
}

.login-brand-mini {
  display: grid;
  grid-template-columns: 150px minmax(0, 360px);
  align-items: center;
  gap: 24px;
  margin-bottom: 46px;
}

.login-brand-symbol {
  width: 150px;
  border-radius: 34px;
  filter: drop-shadow(0 22px 42px rgba(0,0,0,.32));
}

.login-brand-wordmark {
  width: 360px;
  max-height: 138px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.2));
}

.login-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  color: #F3C86A;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-copy h1 {
  max-width: 650px;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0;
  color: #F5F7FA;
  text-shadow: 0 18px 42px rgba(0,0,0,.3);
}

.login-copy h1 mark {
  color: #F3C86A;
  background: transparent;
  font-weight: 900;
}

.login-copy h1::after {
  content: "";
  display: block;
  width: 392px;
  max-width: 72%;
  height: 2px;
  margin-top: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #D6AF37, rgba(214,175,55,.18));
}

.login-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(245,247,250,.82);
  font-size: 17px;
  line-height: 1.55;
}

.login-orbit-bg {
  position: absolute;
  left: -88px;
  bottom: -18px;
  width: 720px;
  max-width: none;
  opacity: .82;
  z-index: 1;
  filter: drop-shadow(0 24px 58px rgba(214,175,55,.14));
  pointer-events: none;
}

.login-card {
  width: 100%;
  align-self: center;
  border-radius: 28px;
  padding: 42px 48px 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(17,58,140,.34), transparent 38%),
    linear-gradient(180deg, rgba(5,20,45,.92), rgba(3,13,30,.96));
  color: #F5F7FA;
  border: 1px solid rgba(214,175,55,.46);
  box-shadow:
    0 34px 90px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 32%);
  pointer-events: none;
}

.login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(214,175,55,.16);
}

.login-card-head {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.login-card-symbol {
  width: 138px;
  border-radius: 36px;
  padding: 0;
  background: radial-gradient(circle, rgba(214,175,55,.16), transparent 64%);
  box-shadow: 0 0 0 1px rgba(214,175,55,.22), 0 22px 52px rgba(0,0,0,.34);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  background: rgba(10,26,47,.58);
  color: #F3C86A;
  border: 1px solid rgba(214,175,55,.38);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-badge::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid #D6AF37;
  border-radius: 4px;
  box-shadow: inset 0 -6px 0 -4px #D6AF37;
}

.login-card h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: #F5F7FA;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 37px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.login-card p {
  position: relative;
  z-index: 2;
  max-width: 350px;
  margin: 0 auto 28px;
  color: rgba(245,247,250,.78);
  font-size: 17px;
  line-height: 1.42;
  text-align: center;
}

.login-card form,
.login-alert,
.login-footer-note {
  position: relative;
  z-index: 2;
}

.login-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220,53,69,.14);
  color: #FFD7D7;
  border: 1px solid rgba(220,53,69,.42);
  font-size: 13px;
}

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

.login-form-group label {
  display: block;
  margin-bottom: 9px;
  color: #F5F7FA;
  font-size: 16px;
  font-weight: 800;
}

.text-field,
.password-field {
  position: relative;
}

.text-field input,
.password-field input,
.login-form-group input,
.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  height: 62px;
  border: 1px solid rgba(170,178,191,.46);
  border-radius: 8px;
  padding: 0 54px 0 66px;
  background: rgba(4,17,39,.72);
  color: #F5F7FA;
  font-size: 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.text-field input::placeholder,
.password-field input::placeholder {
  color: rgba(245,247,250,.58);
}

.text-field input:focus,
.password-field input:focus,
.login-card input:focus {
  border-color: #D6AF37;
  box-shadow: 0 0 0 4px rgba(214,175,55,.13), inset 0 1px 0 rgba(255,255,255,.04);
}

.field-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: #D6AF37;
  pointer-events: none;
}

.field-icon-user::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.field-icon-user::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 18px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 3px 3px;
}

.field-icon-lock::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 14px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.field-icon-lock::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 8px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.password-field input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #D6AF37;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.password-eye {
  position: relative;
  width: 23px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50% / 58%;
}

.password-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
}

.password-toggle.is-visible .password-eye::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 2px;
  height: 24px;
  transform: rotate(45deg);
  background: currentColor;
}

.remember-email {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 28px;
  color: rgba(245,247,250,.82);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}

.remember-email input {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(170,178,191,.58);
  accent-color: #D6AF37;
}

.login-submit {
  width: 100%;
  height: 74px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #F3C86A 0%, #D6AF37 58%, #C7921A 100%);
  color: #071322;
  font-weight: 900;
  font-size: 25px;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(214,175,55,.28);
}

.login-submit:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.login-footer-note {
  margin: 42px 0 0;
  padding-top: 26px;
  color: rgba(245,247,250,.84);
  font-size: 18px;
  text-align: center;
  border-top: 1px solid rgba(170,178,191,.24);
}

.login-footer-note::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: -30px auto 24px;
  border-radius: 50%;
  background: #D6AF37;
  box-shadow: 0 0 18px rgba(214,175,55,.8);
}

.login-footer-note {
  color: rgba(245,247,250,.78);
}

.login-footer-note span,
.login-footer-note strong {
  color: #F3C86A;
  font-weight: 800;
}

.login-footer-note i {
  display: inline-block;
  width: 1px;
  height: 18px;
  margin: 0 24px;
  vertical-align: middle;
  background: rgba(245,247,250,.34);
}

@media (max-width: 1120px) {
  body.login-page,
  .login-page {
    overflow-y: auto;
    padding: 28px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
  }

  .login-visual {
    min-height: auto;
    padding: 10px 0 0;
  }

  .login-brand-mini {
    grid-template-columns: 96px minmax(0, 300px);
    margin-bottom: 30px;
  }

  .login-brand-symbol {
    width: 96px;
  }

  .login-brand-wordmark {
    width: 300px;
  }

  .login-copy h1 {
    font-size: clamp(38px, 8vw, 56px);
  }

  .login-orbit-bg {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(520px, 100%);
    margin-top: 18px;
  }

  .login-card {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  body.login-page,
  .login-page {
    padding: 20px;
  }

  .login-brand-mini {
    grid-template-columns: 72px minmax(0, 230px);
    gap: 14px;
  }

  .login-brand-symbol {
    width: 72px;
    border-radius: 20px;
  }

  .login-brand-wordmark {
    width: 230px;
  }

  .login-copy h1 {
    font-size: 36px;
  }

  .login-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .login-card-symbol {
    width: 98px;
  }

  .login-card h2 {
    font-size: 30px;
  }

  .text-field input,
  .password-field input,
  .login-card input[type="email"],
  .login-card input[type="password"] {
    height: 56px;
    font-size: 16px;
    padding-left: 54px;
  }

  .login-submit {
    height: 62px;
    font-size: 21px;
  }
}

/* === POSIELO PRESTCONT V0.3C - PROPORCAO REFERENCIA === */

body.login-page,
.login-page {
  min-height: 100vh;
  padding: clamp(34px, 5vh, 58px) clamp(46px, 7vw, 96px);
  background:
    radial-gradient(circle at 17% 24%, rgba(17,58,140,.72), transparent 34%),
    radial-gradient(circle at 58% 73%, rgba(214,175,55,.10), transparent 26%),
    linear-gradient(135deg, #071322 0%, #071C3A 46%, #020711 100%);
}

.login-shell {
  width: min(1240px, 100%);
  min-height: min(760px, calc(100vh - 76px));
  grid-template-columns: minmax(440px, 1fr) clamp(430px, 42vw, 535px);
  gap: clamp(48px, 5vw, 78px);
  align-items: center;
}

.login-visual {
  min-height: min(720px, calc(100vh - 110px));
  padding: 8px 0 0;
  overflow: visible;
}

.login-brand-mini {
  grid-template-columns: clamp(118px, 12vw, 150px) minmax(0, clamp(310px, 28vw, 390px));
  gap: 24px;
  margin-bottom: clamp(34px, 5vh, 54px);
}

.login-brand-symbol {
  width: clamp(118px, 12vw, 150px);
  border-radius: 34px;
}

.login-brand-wordmark {
  width: clamp(310px, 28vw, 390px);
  max-height: 150px;
}

.login-copy {
  max-width: 680px;
}

.login-kicker {
  margin-bottom: 22px;
  font-size: clamp(12px, 1vw, 14px);
}

.login-copy h1 {
  max-width: 690px;
  font-size: clamp(46px, 4.55vw, 66px);
  line-height: 1.05;
}

.login-copy h1::after {
  width: 420px;
  height: 2px;
  margin-top: 24px;
}

.login-copy p {
  max-width: 560px;
  margin-top: 24px;
  font-size: clamp(15px, 1.25vw, 18px);
}

.login-orbit-bg {
  left: clamp(-98px, -6vw, -54px);
  bottom: clamp(-34px, -2vh, -10px);
  width: clamp(520px, 50vw, 720px);
  opacity: .78;
}

.login-card {
  min-height: clamp(610px, 72vh, 740px);
  padding: clamp(34px, 4vh, 48px) clamp(38px, 4vw, 50px) clamp(30px, 4vh, 42px);
  border-radius: 30px;
}

.login-card-head {
  margin-bottom: clamp(20px, 3vh, 30px);
}

.login-card-symbol {
  width: clamp(118px, 10vw, 150px);
}

.login-badge {
  min-height: 38px;
  padding: 0 20px;
  font-size: 13px;
}

.login-card h2 {
  font-size: clamp(34px, 3vw, 43px);
  margin-bottom: 12px;
}

.login-card p {
  max-width: 390px;
  margin-bottom: clamp(24px, 3vh, 34px);
  font-size: clamp(15px, 1.2vw, 18px);
}

.login-form-group {
  margin-bottom: 20px;
}

.login-form-group label {
  font-size: 17px;
}

.text-field input,
.password-field input,
.login-form-group input,
.login-card input[type="email"],
.login-card input[type="password"] {
  height: 64px;
  border-radius: 9px;
  font-size: 18px;
}

.remember-email {
  margin: 10px 0 30px;
  font-size: 18px;
}

.login-submit {
  height: 74px;
  border-radius: 9px;
  font-size: 25px;
}

.login-footer-note {
  margin-top: clamp(32px, 4vh, 46px);
  padding-top: 28px;
  font-size: 18px;
}

@media (max-width: 980px) {
  body.login-page,
  .login-page {
    padding: 26px;
    overflow-y: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
  }

  .login-visual {
    min-height: auto;
  }

  .login-card {
    min-height: auto;
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .login-brand-mini {
    grid-template-columns: 76px minmax(0, 250px);
    gap: 14px;
  }

  .login-brand-symbol {
    width: 76px;
  }

  .login-brand-wordmark {
    width: 250px;
  }

  .login-copy h1 {
    font-size: 36px;
  }

  .login-orbit-bg {
    width: min(430px, 115%);
  }
}

/* === POSIELO PRESTCONT V0.3C-2 - FILL REFERENCIA === */

body.login-page,
.login-page {
  padding: 0;
  overflow: hidden;
}

.login-shell {
  width: min(1452px, 100vw);
  min-height: min(1086px, 100vh);
  padding: clamp(34px, 7vh, 94px) clamp(38px, 8vw, 124px);
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(440px, 634px);
  gap: clamp(54px, 7vw, 96px);
  align-items: center;
  transform-origin: center;
}

.login-visual {
  min-height: clamp(650px, 82vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 8px;
}

.login-brand-mini {
  grid-template-columns: clamp(132px, 11vw, 166px) minmax(0, clamp(360px, 29vw, 430px));
  margin-bottom: clamp(40px, 5.2vh, 66px);
}

.login-brand-symbol {
  width: clamp(132px, 11vw, 166px);
}

.login-brand-wordmark {
  width: clamp(360px, 29vw, 430px);
  max-height: 165px;
}

.login-copy h1 {
  max-width: 720px;
  font-size: clamp(54px, 5.15vw, 74px);
  line-height: 1.04;
}

.login-copy p {
  max-width: 610px;
  font-size: clamp(17px, 1.35vw, 21px);
}

.login-orbit-bg {
  left: clamp(-128px, -7vw, -72px);
  bottom: clamp(-42px, -2vh, -12px);
  width: clamp(660px, 55vw, 880px);
  opacity: .86;
}

.login-card {
  width: 100%;
  max-width: 634px;
  min-height: clamp(690px, 82vh, 912px);
  padding: clamp(42px, 4.6vh, 58px) clamp(46px, 4.5vw, 62px);
  border-radius: 28px;
}

.login-card-symbol {
  width: clamp(136px, 11vw, 172px);
}

.login-card h2 {
  font-size: clamp(40px, 3.5vw, 52px);
}

.login-card p {
  max-width: 430px;
  font-size: clamp(17px, 1.35vw, 21px);
}

.login-form-group label {
  font-size: clamp(16px, 1.3vw, 20px);
}

.text-field input,
.password-field input,
.login-form-group input,
.login-card input[type="email"],
.login-card input[type="password"] {
  height: clamp(62px, 6.4vh, 78px);
  font-size: clamp(18px, 1.4vw, 23px);
  border-radius: 9px;
}

.remember-email {
  font-size: clamp(17px, 1.4vw, 22px);
}

.login-submit {
  height: clamp(70px, 7.2vh, 88px);
  font-size: clamp(24px, 2vw, 31px);
}

.login-footer-note {
  font-size: clamp(18px, 1.5vw, 23px);
}

@media (max-width: 1180px) and (min-width: 861px) {
  .login-shell {
    width: 100vw;
    min-height: 100vh;
    padding: 54px 74px;
    grid-template-columns: minmax(430px, 1fr) 360px;
    gap: 54px;
  }

  .login-brand-mini {
    grid-template-columns: 100px minmax(0, 305px);
    margin-bottom: 30px;
  }

  .login-brand-symbol {
    width: 100px;
  }

  .login-brand-wordmark {
    width: 305px;
  }

  .login-copy h1 {
    font-size: 46px;
  }

  .login-copy p {
    font-size: 15px;
    max-width: 500px;
  }

  .login-orbit-bg {
    width: 520px;
    left: -84px;
    bottom: -22px;
  }

  .login-card {
    min-height: 620px;
    padding: 28px 30px;
  }

  .login-card-symbol {
    width: 104px;
  }

  .login-card h2 {
    font-size: 31px;
  }

  .login-card p {
    font-size: 13px;
  }

  .text-field input,
  .password-field input,
  .login-form-group input,
  .login-card input[type="email"],
  .login-card input[type="password"] {
    height: 48px;
    font-size: 13px;
    padding-left: 46px;
  }

  .login-form-group label {
    font-size: 13px;
  }

  .field-icon {
    left: 16px;
    transform: translateY(-50%) scale(.78);
  }

  .remember-email {
    font-size: 13px;
  }

  .remember-email input {
    width: 22px;
    height: 22px;
  }

  .login-submit {
    height: 50px;
    font-size: 15px;
  }

  .login-footer-note {
    margin-top: 26px;
    padding-top: 20px;
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  body.login-page,
  .login-page {
    overflow-y: auto;
  }

  .login-shell {
    width: 100%;
    min-height: auto;
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* === POSIELO PRESTCONT - LOGIN ALVO DEFINITIVO === */

body.login-page,
.login-page {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(17,58,140,.55), transparent 35%),
    radial-gradient(circle at 72% 16%, rgba(214,175,55,.12), transparent 32%),
    linear-gradient(135deg, #071322 0%, #0A1A2F 52%, #06101D 100%);
  color: #F5F7FA;
  font-family: "Inter", "Montserrat", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 46px);
}

.login-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.login-shell {
  width: min(1280px, 100%);
  height: min(820px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 520px);
  gap: clamp(48px, 6vw, 86px);
  align-items: center;
  padding: 0;
}

.login-visual {
  position: relative;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(10px, 2vw, 32px);
  overflow: visible;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.login-brand-symbol {
  width: 128px;
  flex: 0 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.28));
}

.login-brand-wordmark {
  width: 350px;
  max-height: 132px;
  object-fit: contain;
  object-position: left center;
}

.login-kicker {
  color: #F3C86A;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.login-copy {
  position: relative;
  z-index: 2;
}

.login-copy h1 {
  margin: 0;
  max-width: 620px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(44px, 4.55vw, 68px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: 0;
  color: #F5F7FA;
}

.login-copy h1 .gold {
  color: #F3C86A;
  font-weight: 900;
}

.login-copy h1::after {
  content: "";
  display: block;
  width: 390px;
  max-width: 74%;
  height: 2px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F3C86A, rgba(214,175,55,.18));
}

.login-copy p {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(245,247,250,.82);
}

.login-orbit-bg {
  width: 520px;
  max-width: 92%;
  margin-top: 28px;
  opacity: .78;
  filter: drop-shadow(0 26px 56px rgba(214,175,55,.10));
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  height: min(760px, calc(100dvh - 96px));
  max-height: 760px;
  border-radius: 30px;
  padding: 42px 54px;
  background:
    radial-gradient(circle at 50% 8%, rgba(17,58,140,.38), transparent 34%),
    linear-gradient(180deg, rgba(10,26,47,.96), rgba(5,16,30,.98));
  border: 1px solid rgba(214,175,55,.46);
  box-shadow:
    0 36px 90px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #F5F7FA;
  overflow: hidden;
}

.login-card::before,
.login-card::after {
  content: none;
}

.login-card-top {
  text-align: center;
  margin-bottom: 30px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid rgba(214,175,55,.55);
  color: #F3C86A;
  background: rgba(10,26,47,.48);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  margin-bottom: 22px;
}

.login-badge::before {
  content: "";
  width: 17px;
  height: 17px;
  margin-right: 9px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 -6px 0 -4px currentColor;
}

.login-card-symbol {
  width: 118px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 32px rgba(214,175,55,.16));
}

.login-card h2 {
  margin: 0 0 14px;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  color: #F5F7FA;
  letter-spacing: 0;
}

.login-card-subtitle {
  margin: 0 auto 34px;
  max-width: 380px;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245,247,250,.72);
}

.login-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220,53,69,.14);
  color: #FFD7D7;
  border: 1px solid rgba(220,53,69,.42);
  font-size: 13px;
}

.login-form-group {
  margin-bottom: 20px;
}

.login-form-group label {
  display: block;
  margin-bottom: 9px;
  color: #F5F7FA;
  font-size: 15px;
  font-weight: 800;
}

.login-input-wrap,
.password-field {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: #D6AF37;
  z-index: 2;
  pointer-events: none;
}

.login-input-icon-user::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.login-input-icon-user::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 16px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 11px 11px 3px 3px;
}

.login-input-icon-lock::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.login-input-icon-lock::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.login-card input[type="email"],
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  height: 58px;
  border-radius: 10px;
  border: 1px solid rgba(170,178,191,.38);
  background: rgba(3,12,24,.46);
  color: #F5F7FA;
  padding: 0 54px;
  font-size: 17px;
  outline: none;
}

.login-card input::placeholder {
  color: rgba(245,247,250,.50);
}

.login-card input:focus {
  border-color: #D6AF37;
  box-shadow: 0 0 0 4px rgba(214,175,55,.12);
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #D6AF37;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.password-eye {
  position: relative;
  width: 22px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50% / 58%;
}

.password-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
}

.password-toggle.is-visible .password-eye::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 2px;
  height: 24px;
  transform: rotate(45deg);
  background: currentColor;
}

.remember-email {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 28px;
  color: rgba(245,247,250,.78);
  font-size: 15px;
}

.remember-email input {
  width: 22px;
  height: 22px;
  accent-color: #D6AF37;
}

.login-submit {
  width: 100%;
  height: 66px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #F3C86A 0%, #D6AF37 56%, #C7921A 100%);
  color: #0A1A2F;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(214,175,55,.28);
}

.login-card-footer {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(170,178,191,.22);
  text-align: center;
  color: rgba(245,247,250,.70);
  font-size: 15px;
}

.login-card-footer strong {
  color: #D6AF37;
}

.login-card-footer i {
  display: inline-block;
  width: 1px;
  height: 18px;
  margin: 0 20px;
  vertical-align: middle;
  background: rgba(245,247,250,.28);
}

@media (max-width: 1100px) {
  .login-page {
    overflow-y: auto;
  }

  .login-shell {
    height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .login-card {
    height: auto;
    max-width: 560px;
    justify-self: center;
  }

  .login-visual {
    min-height: auto;
  }

  .login-brand-row {
    margin-bottom: 30px;
  }

  .login-orbit-bg {
    width: 420px;
  }
}

@media (max-width: 560px) {
  .login-brand-row {
    gap: 14px;
  }

  .login-brand-symbol {
    width: 82px;
  }

  .login-brand-wordmark {
    width: 240px;
  }

  .login-copy h1 {
    font-size: 42px;
  }

  .login-card {
    padding: 30px 24px;
  }
}
