:root {
    --hermes-navy-950: #061120;
    --hermes-navy-900: #08182c;
    --hermes-navy-850: #0b1d33;
    --hermes-orange: #ff6a13;
    --hermes-orange-2: #ff7a1a;
    --hermes-text: #071a33;
    --hermes-card: rgba(255,255,255,0.96);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--hermes-text);
    background: #f6f8fc;
    overflow: hidden;
}

.hermes-auth-page {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(430px, 46%);
    overflow: hidden;
}

/* =========================
   HERO IZQUIERDO
   ========================= */
.hermes-hero {
    position: relative;
    height: 100vh;
    padding: clamp(26px, 3.6vw, 46px);
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 13, 25, 0.78) 0%, rgba(7, 20, 35, 0.58) 42%, rgba(7, 20, 35, 0.30) 100%),
        url("../hermes/login/hero-footwear.svg") center center / cover no-repeat;
}

.hermes-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,106,19,0.12), transparent 24%),
        linear-gradient(180deg, rgba(7,17,31,0.03), rgba(4,11,20,0.28));
}

.hermes-hero::after {
    content: "";
    position: absolute;
    left: 30px;
    top: 30px;
    bottom: 30px;
    width: 1px;
    opacity: .32;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 10px,
        rgba(255,106,19,.95) 10px,
        rgba(255,106,19,.95) 22px
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 525px;
}

.brand-lockup {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: clamp(34px, 5.5vh, 58px);
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 3.5vw, 48px);
    line-height: .92;
    font-weight: 950;
    letter-spacing: .04em;
    text-shadow: 0 12px 30px rgba(0,0,0,.30);
}

.brand-title span {
    color: var(--hermes-orange);
}

.brand-subtitle {
    color: var(--hermes-orange);
    font-size: clamp(13px, 1.02vw, 16px);
    font-weight: 850;
}

.hero-title {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 3.8vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 950;
    text-wrap: balance;
}

.hero-title strong {
    color: var(--hermes-orange);
    font-weight: 950;
}

.orange-rule {
    width: 56px;
    height: 4px;
    margin: 16px 0 14px;
    border-radius: 999px;
    background: var(--hermes-orange);
    box-shadow: 0 8px 24px rgba(255,106,19,.34);
}

.hero-copy {
    max-width: 530px;
    margin: 0;
    color: rgba(255,255,255,.90);
    font-size: clamp(13px, 1.02vw, 15.5px);
    line-height: 1.45;
    font-weight: 560;
}

.hero-modules {
    position: absolute;
    left: clamp(34px, 4vw, 56px);
    right: clamp(26px, 3vw, 42px);
    bottom: clamp(24px, 3.2vh, 36px);
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    gap: 14px;
    max-width: 820px;
}

.module-card {
    min-height: 112px;
    padding: 15px 15px 14px;
    border: 1px solid rgba(170,198,231,.28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(16,37,63,.70), rgba(8,24,43,.56));
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
    backdrop-filter: blur(10px);
}

.module-card svg {
    width: 22px;
    height: 22px;
    margin-bottom: 9px;
    color: var(--hermes-orange);
}

.module-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 850;
}

.module-card p {
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 12.2px;
    line-height: 1.32;
}

/* =========================
   LOGIN DERECHO
   ========================= */
.hermes-login-side {
    position: relative;
    height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(22px, 3.2vw, 44px);
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 15%, rgba(255,106,19,.045), transparent 28%),
        radial-gradient(circle at 75% 85%, rgba(10,33,61,.07), transparent 32%),
        linear-gradient(180deg, #fbfcff 0%, #f5f7fb 100%);
}

.hermes-login-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .22;
    pointer-events: none;
}

.login-wrap {
    position: relative;
    z-index: 2;
    width: min(100%, 505px);
}

.login-card {
    position: relative;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid rgba(203,213,225,.80);
    border-radius: 26px;
    background: var(--hermes-card);
    box-shadow:
        0 24px 58px rgba(15,23,42,.10),
        0 2px 0 rgba(255,255,255,.90) inset;
    overflow: hidden;
}

.login-card::after {
    content: "";
    position: absolute;
    right: -64px;
    top: -64px;
    width: 158px;
    height: 158px;
    border-radius: 999px;
    background: rgba(255,106,19,.08);
}

.secure-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--hermes-orange);
    font-size: 11.5px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.secure-label svg {
    width: 18px;
    height: 18px;
}

.login-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #071a33;
    font-size: clamp(30px, 3.1vw, 43px);
    line-height: 1;
    letter-spacing: -0.052em;
    font-weight: 950;
}

.login-copy {
    position: relative;
    z-index: 1;
    margin: 15px 0 22px;
    color: #5e6b7d;
    font-size: 15.5px;
    line-height: 1.42;
}

.auth-alert {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(220,38,38,.22);
    border-radius: 14px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 13.5px;
    font-weight: 700;
}

.form-group {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin: 0 0 8px;
    color: #111827;
    font-size: 14.5px;
    font-weight: 800;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.input-shell input {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 50px;
    border: 1px solid #cdd8e6;
    border-radius: 14px;
    outline: none;
    background: linear-gradient(180deg, #fff 0%, #f5f8fd 100%);
    color: #0b1728;
    font-size: 14.5px;
    font-weight: 650;
    box-shadow: 0 1px 0 rgba(255,255,255,.82) inset;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.input-shell input:focus {
    border-color: rgba(255,106,19,.78);
    box-shadow:
        0 0 0 4px rgba(255,106,19,.10),
        0 12px 26px rgba(15,23,42,.06);
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #7b8798;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 13px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    color: #7b8798;
    background: transparent;
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--hermes-orange);
    background: #eef4fb;
}

.login-button {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--hermes-orange) 0%, var(--hermes-orange-2) 52%, #ff5a0a 100%);
    box-shadow: 0 16px 34px rgba(255,106,19,.24);
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(255,106,19,.30);
    filter: saturate(1.05);
}

.recover-link {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 16px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.recover-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
    color: #273244;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
}

.trust-item svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: #0f172a;
}

.trust-item span {
    display: block;
    font-size: 11.5px;
    line-height: 1.16;
    font-weight: 760;
}

.devex-mark {
    display: none !important;
}

/* =========================
   PANTALLAS BAJAS
   ========================= */
@media (max-height: 820px) and (min-width: 1000px) {
    .hermes-hero {
        padding: 24px 42px;
    }

    .brand-lockup {
        margin-bottom: 34px;
    }

    .brand-title {
        font-size: 40px;
    }

    .brand-subtitle {
        font-size: 14px;
    }

    .hero-title {
        max-width: 500px;
        font-size: 43px;
        line-height: 1.04;
    }

    .orange-rule {
        margin: 14px 0 12px;
    }

    .hero-copy {
        max-width: 500px;
        font-size: 14px;
        line-height: 1.42;
    }

    .hero-modules {
        bottom: 20px;
        gap: 12px;
    }

    .module-card {
        min-height: 95px;
        padding: 12px 13px;
        border-radius: 15px;
    }

    .module-card svg {
        width: 19px;
        height: 19px;
        margin-bottom: 7px;
    }

    .module-card h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .module-card p {
        font-size: 10.8px;
        line-height: 1.24;
    }

    .login-wrap {
        width: min(100%, 480px);
    }

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

    .secure-label {
        margin-bottom: 13px;
        font-size: 10.5px;
    }

    .login-title {
        font-size: 38px;
    }

    .login-copy {
        margin: 12px 0 18px;
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 13px;
    }

    .form-group label {
        font-size: 13.5px;
        margin-bottom: 7px;
    }

    .input-shell input {
        height: 46px;
        font-size: 13.5px;
    }

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

    .recover-link {
        margin-top: 13px;
        font-size: 13px;
    }

    .trust-row {
        margin-top: 18px;
    }

    .trust-item span {
        font-size: 10.8px;
    }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
    body {
        overflow-y: auto;
    }

    .hermes-auth-page {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .hermes-hero,
    .hermes-login-side {
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .hermes-hero {
        min-height: 660px;
    }

    .hero-modules {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 28px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .hermes-login-side {
        padding: 34px 20px 46px;
    }

    .login-wrap {
        width: min(100%, 560px);
    }
}

@media (max-width: 620px) {
    .hermes-hero {
        padding: 24px 20px;
        min-height: auto;
    }

    .hermes-hero::after {
        display: none;
    }

    .brand-lockup {
        margin-bottom: 30px;
    }

    .brand-title {
        font-size: 34px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-copy {
        font-size: 14px;
    }

    .hero-modules {
        grid-template-columns: 1fr;
    }

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

    .login-title {
        font-size: 34px;
    }

    .trust-row {
        grid-template-columns: 1fr;
    }
}