.gh-login-body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: #12201b;
    background: #f6f8f7;
    font-family: "Inter", Arial, sans-serif;
}

.gh-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.12fr) minmax(440px, .88fr);
}

.gh-visual {
    --move-x: 0px;
    --move-y: 0px;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(32px, 4vw, 64px);
    color: #fff;
    background:
        radial-gradient(circle at 76% 18%, rgba(49, 190, 112, .18), transparent 28%),
        linear-gradient(145deg, #061b14 0%, #0a2a1d 52%, #103a27 100%);
}

.gh-grid {
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
    transform: perspective(650px) rotateX(58deg) scale(1.6) translateY(13%);
    transform-origin: center bottom;
}

.gh-aurora {
    position: absolute;
    z-index: -2;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .2;
    pointer-events: none;
}

.gh-aurora-one { top: -170px; right: -80px; background: #35d780; animation: gh-drift 12s ease-in-out infinite alternate; }
.gh-aurora-two { bottom: -210px; left: -140px; background: #dda427; animation: gh-drift 15s ease-in-out -5s infinite alternate-reverse; }

.gh-visual-top,
.gh-brand,
.gh-trust-row,
.gh-module,
.gh-form-meta,
.gh-security-note {
    display: flex;
    align-items: center;
}

.gh-visual-top { position: relative; z-index: 4; justify-content: space-between; }
.gh-brand { gap: 13px; color: inherit; text-decoration: none; }
.gh-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 14px;
    color: #8ff0b8;
    background: rgba(255,255,255,.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 38px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}
.gh-brand-mark svg { width: 31px; height: 31px; }
.gh-brand-copy { display: grid; gap: 2px; }
.gh-brand-copy strong { color: inherit; font-size: 18px; font-weight: 800; letter-spacing: -.45px; }
.gh-brand-copy small { color: rgba(255,255,255,.58); font-size: 10px; font-weight: 600; letter-spacing: 1.15px; text-transform: uppercase; }

.gh-live { padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: rgba(255,255,255,.72); background: rgba(0,0,0,.12); font-size: 11px; font-weight: 600; backdrop-filter: blur(10px); }
.gh-live i, .gh-eyebrow i { width: 7px; height: 7px; display: inline-block; margin-right: 8px; border-radius: 50%; background: #58dc8d; box-shadow: 0 0 0 5px rgba(88,220,141,.12); animation: gh-pulse-dot 2.2s ease-out infinite; }

.gh-stage {
    position: absolute;
    z-index: 1;
    top: 47%;
    left: 63%;
    width: min(31vw, 450px);
    aspect-ratio: 1;
    transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)));
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.gh-core,
.gh-orbit { position: absolute; inset: 50% auto auto 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.gh-core {
    z-index: 3;
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    color: #9af4c0;
    background: linear-gradient(145deg, rgba(27,112,71,.95), rgba(8,47,32,.96));
    border: 1px solid rgba(155,244,192,.42);
    box-shadow: 0 0 0 13px rgba(90,221,143,.055), 0 24px 60px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.18);
}
.gh-core svg { width: 53px; height: 53px; filter: drop-shadow(0 0 13px rgba(111,238,166,.3)); }
.gh-core-pulse { position: absolute; inset: -14px; border: 1px solid rgba(111,238,166,.22); border-radius: 50%; animation: gh-core-pulse 2.8s ease-out infinite; }
.gh-orbit { border: 1px solid rgba(164,243,198,.18); }
.gh-orbit-outer { width: 92%; height: 92%; animation: gh-spin 25s linear infinite; }
.gh-orbit-inner { width: 59%; height: 59%; border-style: dashed; animation: gh-spin-reverse 17s linear infinite; }
.gh-orbit span { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border: 2px solid #0d2e20; border-radius: 50%; background: #70e9a3; box-shadow: 0 0 17px rgba(112,233,163,.75); }
.gh-orbit span:nth-child(2) { inset: auto 9% 15% auto; width: 7px; height: 7px; background: #e8b94f; box-shadow: 0 0 14px rgba(232,185,79,.68); }
.gh-orbit-inner span { top: 12%; left: 79%; width: 8px; height: 8px; }

.gh-module {
    position: absolute;
    z-index: 4;
    gap: 10px;
    min-width: 166px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(8,36,25,.72);
    box-shadow: 0 18px 45px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.09);
    backdrop-filter: blur(14px);
    animation: gh-float 5s ease-in-out infinite;
}
.gh-module-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #b1f7ce; background: rgba(92,220,145,.13); font-size: 12px; font-weight: 800; }
.gh-module strong, .gh-module small { display: block; }
.gh-module strong { font-size: 12px; }
.gh-module small { margin-top: 3px; color: rgba(255,255,255,.52); font-size: 9px; }
.gh-module-fleet { top: 4%; left: -4%; }
.gh-module-stock { right: -4%; top: 29%; animation-delay: -1.8s; }
.gh-module-maintenance { right: -5%; bottom: -3%; animation-delay: -3.2s; }

.gh-visual-copy { position: relative; z-index: 3; max-width: 600px; margin-top: auto; }
.gh-kicker { color: #72dfa0; font-size: 11px; font-weight: 800; letter-spacing: 2.2px; }
.gh-visual-copy h1 { margin-top: 15px; color: #fff; font-size: clamp(38px, 4.3vw, 68px); line-height: .99; letter-spacing: -3.2px; }
.gh-visual-copy h1 em { color: #86e9b0; font-style: normal; }
.gh-visual-copy p { max-width: 580px; margin-top: 20px; color: rgba(255,255,255,.67); font-size: 15px; line-height: 1.65; }
.gh-trust-row { flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 600; }
.gh-trust-row i { margin-right: 5px; color: #7be2a7; font-style: normal; }

.gh-login-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(30px, 6vw, 84px);
    background:
        radial-gradient(circle at 95% 5%, rgba(33,153,91,.07), transparent 27%),
        #f8faf9;
}
.gh-login-box { width: min(100%, 440px); animation: gh-enter .7s cubic-bezier(.2,.8,.2,1) both; }
.gh-mobile-brand { display: none; }
.gh-eyebrow { display: inline-flex; align-items: center; color: #25844f; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.gh-eyebrow i { margin-right: 10px; }
.gh-login-box h2 { margin-top: 17px; color: #12201b; font-size: clamp(31px, 3vw, 42px); font-weight: 800; line-height: 1.08; letter-spacing: -1.45px; }
.gh-login-help { margin: 11px 0 34px; color: #738078; font-size: 14px; }

.gh-field { margin-bottom: 19px; }
.gh-field label { margin-bottom: 9px; color: #27372f; font-size: 12px; font-weight: 700; }
.gh-input-wrap { position: relative; }
.gh-input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8a9790;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke .2s ease;
}
.gh-field .gh-input-wrap input {
    height: 54px;
    padding: 0 47px;
    border: 1px solid #dce4df;
    border-radius: 13px;
    color: #12201b;
    background: #fff;
    box-shadow: 0 1px 2px rgba(12,39,27,.025);
    font: 500 14px/1 "Inter", sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gh-field .gh-input-wrap input::placeholder { color: #a3ada7; }
.gh-field .gh-input-wrap input:focus { border-color: #34a565; box-shadow: 0 0 0 4px rgba(52,165,101,.1), 0 8px 25px rgba(12,69,39,.06); }
.gh-input-wrap:focus-within > svg { stroke: #25844f; }
.gh-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: #839087;
    background: transparent;
}
.gh-password-toggle:hover { color: #25844f; background: #eff8f2; }
.gh-password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gh-eye-closed { display: none; }
.gh-password-toggle[aria-pressed="true"] .gh-eye-open { display: none; }
.gh-password-toggle[aria-pressed="true"] .gh-eye-closed { display: block; }

.gh-form-meta { justify-content: space-between; gap: 18px; margin: -3px 0 24px; font-size: 10px; }
.gh-form-meta span { color: #929d97; }
.gh-form-meta a { color: #247a49; font-weight: 700; text-decoration: none; }
.gh-form-meta a:hover { text-decoration: underline; }

.gh-login-button {
    position: relative;
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    overflow: hidden;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(105deg, #17683a, #269856);
    box-shadow: 0 14px 30px rgba(26,126,70,.22);
    font: 700 13px/1 "Inter", sans-serif;
    transition: transform .2s ease, box-shadow .2s ease;
}
.gh-login-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 15%, rgba(255,255,255,.16) 48%, transparent 80%); transform: translateX(-115%); transition: transform .6s ease; }
.gh-login-button:hover { transform: translateY(-2px); box-shadow: 0 18px 35px rgba(26,126,70,.28); }
.gh-login-button:hover::before { transform: translateX(115%); }
.gh-login-button:active { transform: translateY(0); }
.gh-button-arrow { font-size: 19px; transition: transform .2s ease; }
.gh-login-button:hover .gh-button-arrow { transform: translateX(4px); }
.gh-button-loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: gh-spin-loader .8s linear infinite; }
.gh-login-button.is-loading .gh-button-arrow { display: none; }
.gh-login-button.is-loading .gh-button-loader { display: block; }
.gh-login-button:disabled { cursor: wait; opacity: .86; }

.gh-security-note { justify-content: center; gap: 8px; margin-top: 24px; color: #89958e; font-size: 10px; }
.gh-security-note svg { width: 17px; height: 17px; fill: none; stroke: #55926f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gh-login-error { margin: -12px 0 24px; border: 1px solid #f0c5c5; border-radius: 11px; color: #9f2f2f; background: #fff4f4; font-size: 12px; }

@keyframes gh-drift { to { transform: translate3d(65px, 42px, 0) scale(1.12); } }
@keyframes gh-pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(88,220,141,.24); } 55% { box-shadow: 0 0 0 7px rgba(88,220,141,0); } }
@keyframes gh-core-pulse { 0% { opacity: .7; transform: scale(.86); } 75%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes gh-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes gh-spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes gh-spin-loader { to { transform: rotate(360deg); } }
@keyframes gh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes gh-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
    .gh-login-page { grid-template-columns: minmax(420px, .95fr) minmax(400px, 1.05fr); }
    .gh-stage { left: 66%; width: 390px; opacity: .88; }
    .gh-module { min-width: 145px; }
    .gh-visual-copy h1 { font-size: 46px; }
}

@media (max-width: 820px) {
    .gh-login-page { display: block; min-height: 100vh; }
    .gh-visual { min-height: 236px; height: 30vh; max-height: 300px; padding: 25px 28px; }
    .gh-visual-top .gh-brand, .gh-live, .gh-visual-copy p, .gh-trust-row { display: none; }
    .gh-visual-top { justify-content: flex-end; }
    .gh-stage { top: 50%; left: 76%; width: 270px; }
    .gh-core { width: 76px; height: 76px; }
    .gh-core svg { width: 38px; height: 38px; }
    .gh-module { display: none; }
    .gh-visual-copy { margin-top: auto; max-width: 360px; }
    .gh-visual-copy h1 { margin-top: 8px; font-size: 34px; letter-spacing: -1.8px; }
    .gh-kicker { font-size: 9px; }
    .gh-login-panel { min-height: auto; padding: 42px 26px 50px; }
    .gh-mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; }
    .gh-mobile-brand .gh-brand-mark { width: 43px; height: 43px; color: #237c49; border-color: #dbe8e0; background: #eff8f2; box-shadow: none; }
    .gh-mobile-brand .gh-brand-mark svg { width: 27px; height: 27px; }
    .gh-mobile-brand .gh-brand-copy strong { color: #14261d; font-size: 16px; }
    .gh-mobile-brand .gh-brand-copy small { color: #7a887f; font-size: 8px; }
}

@media (max-width: 520px) {
    .gh-visual { min-height: 190px; height: 24vh; padding: 20px; }
    .gh-stage { left: 79%; width: 215px; opacity: .67; }
    .gh-visual-copy h1 { font-size: 28px; }
    .gh-login-panel { padding: 30px 20px 38px; }
    .gh-mobile-brand { margin-bottom: 27px; }
    .gh-login-box h2 { font-size: 31px; }
    .gh-login-help { margin-bottom: 28px; }
    .gh-form-meta span { display: none; }
    .gh-form-meta { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    .gh-login-body *, .gh-login-body *::before, .gh-login-body *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Logomarca oficial e refinamento compacto das telas de acesso */
.gh-brand-logo {
    display: block;
    width: 218px;
    height: 72px;
    object-fit: cover;
    object-position: center 50%;
    border-radius: 0;
}

.gh-login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gh-login-box {
    padding: clamp(25px, 2.5vw, 36px);
    border: 1px solid rgba(22, 104, 58, .08);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 24px 70px rgba(10, 70, 41, .08);
    backdrop-filter: blur(15px);
}
.gh-login-box h2 { margin-top: 13px; }
.gh-login-help { margin: 9px 0 25px; line-height: 1.55; }
.gh-field { margin-bottom: 15px; }
.gh-field .gh-input-wrap input { height: 50px; }
.gh-form-meta { margin: -2px 0 17px; }
.gh-login-button { height: 50px; }
.gh-security-note { margin-top: 20px; }

.gh-first-access-line { margin: 17px 0 0; color: #7b8881; text-align: center; font-size: 11px; line-height: 1.4; }
.gh-first-access-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 5px; color: #247a49 !important; font-size: 11px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.gh-first-access-link:hover { color: #165d35 !important; }

.gh-recovery-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-top: 22px; border-radius: 14px; color: #187c46; background: #e9f8ef; }
.gh-recovery-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gh-login-success { margin: -8px 0 18px; padding: 11px 13px; border: 1px solid #bce8cc; border-radius: 11px; color: #17683a; background: #eefbf3; font-size: 11px; line-height: 1.5; }
.gh-recovery-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.gh-recovery-links a { display: inline-flex; align-items: center; gap: 7px; color: #247a49 !important; font-size: 11px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }

@media (min-width: 821px) {
    .gh-login-page { height: 100dvh; min-height: 620px; grid-template-columns: minmax(0, 1.55fr) minmax(390px, .72fr); overflow: hidden; }
    .gh-visual, .gh-login-panel { min-height: 0; height: 100dvh; }
    .gh-visual { padding: clamp(26px, 3vw, 46px); }
    .gh-login-panel { padding: clamp(22px, 3vw, 48px); }
    .gh-login-box { width: min(100%, 420px); }
    .gh-visual-copy h1 { font-size: clamp(40px, 4.05vw, 64px); }
}

@media (max-width: 820px) {
    .gh-login-page { display: block; min-height: 100dvh; }
    .gh-visual { display: none; }
    .gh-login-panel { min-height: 100dvh; padding: 22px; }
    .gh-mobile-brand { display: flex; justify-content: center; width: 100%; margin: 0 0 16px; }
    .gh-mobile-brand .gh-brand-logo { width: 174px; height: 58px; }
    .gh-login-box { width: min(100%, 430px); padding: 25px 23px; }
}

@media (max-width: 520px) {
    .gh-login-panel { padding: 18px; }
    .gh-mobile-brand { margin-bottom: 11px; }
    .gh-mobile-brand .gh-brand-logo { width: 154px; height: 51px; }
    .gh-login-box { padding: 22px 18px; border-radius: 19px; }
    .gh-login-box h2 { font-size: 28px; }
    .gh-login-help { margin-bottom: 21px; font-size: 13px; }
    .gh-form-meta span { display: none; }
    .gh-form-meta { justify-content: flex-end; }
    .gh-security-note { margin-top: 17px; }
    .gh-recovery-icon { width: 44px; height: 44px; margin-top: 17px; }
}

/* Hero fotográfico inspirado na referência aprovada */
.gh-visual {
    background-image:
        linear-gradient(180deg, rgba(0, 19, 14, .1) 0%, rgba(0, 15, 11, .06) 48%, rgba(0, 12, 9, .86) 100%),
        linear-gradient(90deg, rgba(0, 20, 14, .12), transparent 58%),
        url("../assets/branding/hero-mining-fleet-v1.png");
    background-size: cover;
    background-position: center center;
}
.gh-grid, .gh-aurora { display: none; }
.gh-stage { inset: 0; width: auto; height: auto; aspect-ratio: auto; transform: none; pointer-events: none; }
.gh-stage .gh-orbit, .gh-stage .gh-core { display: none; }
.gh-module { min-width: 172px; background: rgba(2, 28, 20, .78); border-color: rgba(130, 239, 178, .28); }
.gh-module-fleet { top: 15%; left: 20%; }
.gh-module-stock { top: 17%; right: 9%; }
.gh-module-maintenance { top: 29%; right: 2%; bottom: auto; }
.gh-module-fuel { top: auto; right: 5%; bottom: 34%; animation-delay: -4s; }
.gh-visual-copy { max-width: 690px; padding-bottom: 2px; }
.gh-visual-copy h1 { margin-top: 0; text-shadow: 0 3px 25px rgba(0,0,0,.55); }
.gh-visual-copy p { max-width: 650px; color: rgba(255,255,255,.84); text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.gh-trust-row { gap: 14px 24px; color: rgba(255,255,255,.88); }
.gh-trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.gh-trust-row i { width: 27px; height: 27px; display: grid; place-items: center; margin: 0; border: 1px solid rgba(75,239,151,.45); border-radius: 50%; color: #5eef9f; background: rgba(0,28,20,.56); }
.gh-login-panel { position: relative; overflow: hidden; background: radial-gradient(circle at 86% 5%, rgba(64, 223, 139, .13), transparent 28%), #f9fcfa; }
.gh-login-panel::before { content: "H"; position: absolute; top: 24px; right: 40px; width: 94px; height: 84px; display: grid; place-items: center; box-sizing: border-box; border: 7px solid #149254; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); color: #149254; opacity: .055; font: 800 48px/1 "Inter", sans-serif; pointer-events: none; }
.gh-remember { display: inline-flex; align-items: center; gap: 7px; color: #7a877f; font-size: 11px; cursor: pointer; }
.gh-remember input { position: absolute; opacity: 0; pointer-events: none; }
.gh-remember span { width: 18px; height: 18px; display: grid !important; place-items: center; border: 1px solid #b9c9c0; border-radius: 4px; color: transparent; background: #fff; font-size: 12px; }
.gh-remember input:checked + span { color: #fff; border-color: #21834c; background: #21834c; }

@media (min-width: 821px) {
    .gh-login-page { grid-template-columns: minmax(0, 1.78fr) minmax(390px, 1fr); }
    .gh-visual-copy h1 { font-size: clamp(42px, 4vw, 66px); line-height: 1.02; }
}
