:root {
    --brand-red: #ec2027;
    --brand-red-dark: #c9171e;
    --brand-cyan: #00b7c6;
    --ink: #111114;
    --ink-soft: #686b74;
    --surface: #ffffff;
    --surface-soft: #f6f7f9;
    --line: #e2e4e9;
    --danger-bg: #fff2f3;
    --danger-line: #ffd1d4;
    --danger-text: #a5151b;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Poppins, Arial, sans-serif;
    color: var(--ink);
    background: var(--surface-soft);
}

button,
input {
    font: inherit;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1.08fr);
    background: var(--surface);
}

.brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 16% 16%, rgba(236, 32, 39, 0.22), transparent 28rem),
        radial-gradient(circle at 82% 78%, rgba(0, 183, 198, 0.12), transparent 24rem),
        linear-gradient(145deg, #08090c 0%, #11131a 58%, #17131b 100%);
}

.brand-panel__grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}

.brand-panel__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.42;
}

.brand-panel__glow--red {
    width: 260px;
    height: 260px;
    top: 16%;
    left: 9%;
    background: rgba(236, 32, 39, 0.28);
}

.brand-panel__glow--cyan {
    width: 220px;
    height: 220px;
    right: 4%;
    bottom: 8%;
    background: rgba(0, 183, 198, 0.18);
}

.brand-panel__content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 5vw, 64px);
}

.brand-panel__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.56);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.brand-panel__line {
    width: 36px;
    height: 1px;
    background: rgba(255,255,255,0.18);
}

.brand-panel__hero {
    margin-top: clamp(82px, 12vh, 138px);
    margin-bottom: clamp(54px, 7vh, 86px);
    max-width: 500px;
}

.brand-panel__hero h2 {
    margin: 0;
    max-width: 500px;
    font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
    font-size: clamp(42px, 4.35vw, 62px);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.042em;
}

.brand-panel__art {
    position: relative;
    width: min(420px, 70%);
    aspect-ratio: 1;
    margin: auto auto 18px;
}

.art-ring,
.art-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.art-ring {
    border: 1px solid rgba(255,255,255,0.12);
}

.art-ring--one {
    width: 100%;
    height: 100%;
}

.art-ring--two {
    width: 72%;
    height: 72%;
    border-color: rgba(236,32,39,0.30);
}

.art-ring--three {
    width: 44%;
    height: 44%;
    border-color: rgba(0,183,198,0.30);
}

.art-core {
    width: 122px;
    height: 122px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.045);
    box-shadow: 0 0 80px rgba(236,32,39,0.14);
    backdrop-filter: blur(12px);
    z-index: 3;
    isolation: isolate;
}

.art-core::before,
.art-core::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: core-pulse 4.8s ease-out infinite;
}

.art-core::after {
    animation-delay: 2.4s;
}

.art-core img {
    display: block;
    width: 66px;
    max-height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
}

@keyframes core-pulse {
    0% {
        transform: scale(1);
        opacity: 0.38;
    }
    75%,
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

.art-area {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    background: rgba(12,14,18,0.72);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.055em;
    white-space: nowrap;
    text-transform: uppercase;
}

.art-area {
    --node-color: 236, 32, 39;
}

.art-area i {
    position: relative;
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: rgb(var(--node-color));
    box-shadow: 0 0 0 4px rgba(var(--node-color), 0.10);
}

.art-area i::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(var(--node-color), 0.72);
    border-radius: 50%;
    animation: node-pulse 2.8s ease-out infinite;
    pointer-events: none;
}

@keyframes node-pulse {
    0% {
        transform: scale(1);
        opacity: 0.52;
    }
    72%,
    100% {
        transform: scale(3.1);
        opacity: 0;
    }
}

.art-area--ventas {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.art-area--rh {
    top: 27%;
    left: -3%;
}

.art-area--rh,
.art-area--sistemas {
    --node-color: 0, 183, 198;
}

.art-area--admin {
    top: 31%;
    right: -5%;
}

.art-area--sistemas {
    right: 0;
    bottom: 23%;
}

.art-area--marketing {
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
}

.art-area--marketing {
    --node-color: 241, 90, 41;
}

.art-area--logistica {
    bottom: 20%;
    left: -1%;
}

.art-area--ventas i::after { animation-delay: 0s; }
.art-area--admin i::after { animation-delay: 0.45s; }
.art-area--sistemas i::after { animation-delay: 0.9s; }
.art-area--marketing i::after { animation-delay: 1.35s; }
.art-area--logistica i::after { animation-delay: 1.8s; }
.art-area--rh i::after { animation-delay: 2.25s; }

.brand-panel__footer {
    margin: 0;
    color: rgba(255,255,255,0.42);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
    background:
        radial-gradient(circle at 86% 10%, rgba(236,32,39,0.04), transparent 24rem),
        #fff;
}

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

.brand-logo {
    margin-bottom: 58px;
}

.brand-logo img {
    display: block;
    width: 220px;
    max-width: 62vw;
    height: auto;
    object-fit: contain;
}

.login-copy {
    margin-bottom: 30px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.subtitle {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

form {
    margin-top: 0;
}

.field + .field {
    margin-top: 18px;
}

label {
    display: block;
    margin: 0 0 8px;
    color: #2a2b31;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
    color: #a6a9b1;
}

input:hover {
    border-color: #cfd2d9;
}

input:focus {
    border-color: rgba(236, 32, 39, 0.72);
    box-shadow: 0 0 0 4px rgba(236, 32, 39, 0.10);
}

.submit-button {
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #fff;
    background: var(--brand-red);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(236, 32, 39, 0.20);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
    background: var(--brand-red-dark);
    box-shadow: 0 16px 32px rgba(236, 32, 39, 0.28);
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(236, 32, 39, 0.20);
    outline-offset: 3px;
}

.error {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--danger-line);
    border-radius: 13px;
    color: var(--danger-text);
    background: var(--danger-bg);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.security-note {
    margin: 20px 0 0;
    color: #92959d;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 36px 24px;
    }

    .brand-logo {
        margin-bottom: 44px;
    }
}

@media (max-width: 520px) {
    .login-panel {
        align-items: flex-start;
        padding-top: 54px;
    }

    .brand-logo img {
        width: 152px;
    }

    h1 {
        font-size: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
