@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* Portal de contas do MetriHub: identifica a empresa pelo código e leva ao login dela. */
:root {
    --accent: #ff6f00;
    --accent-rgb: 255, 111, 0;
}

* { box-sizing: border-box; }

body.mh-portal {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: #fff;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(var(--accent-rgb), .22), transparent 30%),
        radial-gradient(circle at 8% 78%, rgba(var(--accent-rgb), .12), transparent 32%),
        linear-gradient(145deg, #111 0%, #181818 48%, #0b0b0b 100%);
}

body.mh-portal::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .15));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .15));
    pointer-events: none;
}

.mh-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.mh-card {
    width: 100%;
    max-width: 30rem;
    padding: 38px 38px 30px;
    border-radius: 28px;
    background: rgba(23, 23, 23, .72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .10);
    text-align: center;
    animation: mh-rise .7s cubic-bezier(.2, .8, .2, 1) both;
}

.mh-card .mh-logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 22px; }
.mh-card .mh-logo.mh-client { width: 210px; }

.mh-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    margin-bottom: 12px;
}
.mh-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px rgba(var(--accent-rgb), .65); }

.mh-card h1 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.85rem; font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.mh-card p.mh-sub { margin: 10px auto 0; max-width: 22rem; color: rgba(255, 255, 255, .66); font-size: .95rem; line-height: 1.55; }

.mh-form { margin-top: 26px; text-align: left; }
.mh-form label { display: block; margin-bottom: 8px; color: rgba(255, 255, 255, .8); font-size: .84rem; font-weight: 700; }
.mh-input {
    width: 100%; min-height: 3.25rem; padding: 0 16px; border-radius: 14px;
    border: 0; outline: 0; color: #fff; background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    font: 700 1.15rem Inter, sans-serif; letter-spacing: .18em; text-align: center; text-transform: uppercase;
    transition: box-shadow .2s ease, background .2s ease;
}
.mh-input::placeholder { color: rgba(255, 255, 255, .28); letter-spacing: .18em; }
.mh-input:focus { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(var(--accent-rgb), .16); }
.mh-error { margin-top: 10px; color: #ff8a5c; font-size: .86rem; text-align: center; }

.mh-btn {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 18px;
    border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; color: #fff;
    font: 800 .98rem Inter, sans-serif;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent));
    box-shadow: 0 18px 38px rgba(var(--accent-rgb), .28);
    transition: transform .25s ease, box-shadow .25s ease;
}
.mh-btn:hover { transform: translateY(-2px); box-shadow: 0 26px 52px rgba(var(--accent-rgb), .38); }
.mh-link { display: inline-block; margin-top: 18px; color: rgba(255, 255, 255, .55); font-size: .86rem; text-decoration: none; }
.mh-link:hover { color: #fff; }

.mh-found-name { margin-top: 4px; font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }

/* Rodapé do produto (mesmo componente do painel), sempre na variante escura */
.mh-footer { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.25rem 1rem 1.75rem; text-align: center; color: rgba(255, 255, 255, .45); font-size: .78rem; }
.mh-footer p { margin: 0; }
.mh-footer strong { font-weight: 700; }
.mh-footer-logo img { height: 1.5rem; width: auto; }
.mh-pf-light { display: none; }
.mh-pf-dark { display: block; }

@keyframes mh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) { .mh-card { padding: 30px 22px 24px; } .mh-card h1 { font-size: 1.55rem; } }
@media (prefers-reduced-motion: reduce) { .mh-card { animation: none; } .mh-btn { transition: none; } }
