/* Harmand auth — negro, blanco, rojo */
:root {
    --hm-black: #050505;
    --hm-black-soft: #0c0c0c;
    --hm-card: rgba(14, 14, 14, 0.9);
    --hm-input: #0f0f0f;
    --hm-border: rgba(255, 255, 255, 0.1);
    --hm-border-strong: rgba(255, 255, 255, 0.16);
    --hm-white: #ffffff;
    --hm-muted: #9a9a9a;
    --hm-red: #e11d2e;
    --hm-red-hover: #b91c1c;
    --hm-red-soft: rgba(225, 29, 46, 0.18);
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    background: var(--hm-black) !important;
    background-image: none !important;
    color: var(--hm-white);
    font-family: 'Figtree', sans-serif;
}

.auth-body::before {
    display: none !important;
    content: none !important;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #050505 url('../images/harmand/login-bg.jpg') center center / cover no-repeat;
    transform: scale(1.08);
    filter: blur(10px) brightness(0.32) saturate(0.75);
}

.auth-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.72) 100%),
        radial-gradient(ellipse at 18% 55%, rgba(225, 29, 46, 0.12), transparent 48%);
}

.auth-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 2rem 3.5vw 4.75rem;
    box-sizing: border-box;
}

.auth-shell--split {
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 5rem);
    max-width: none;
    width: 100%;
}

.auth-brand {
    flex: 1 1 52%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 6.5rem);
    padding: 0.5rem 0 1rem;
}

.auth-brand-logo--top {
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.auth-brand-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    gap: clamp(1.5rem, 3vh, 2.75rem);
    padding: 1rem 0;
}

.auth-brand-logo {
    width: min(100%, clamp(360px, 42vw, 580px));
    height: auto;
    align-self: flex-start;
    filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.5));
}

.auth-tagline {
    display: flex;
    align-items: stretch;
    gap: clamp(0.85rem, 1.5vw, 1.25rem);
    max-width: clamp(340px, 40vw, 580px);
}

.auth-tagline-bar {
    width: 4px;
    flex-shrink: 0;
    background: var(--hm-red);
    border-radius: 2px;
}

.auth-tagline-text {
    margin: 0;
    font-size: clamp(1.85rem, 3.8vw, 3.35rem);
    font-weight: 600;
    line-height: 1.12;
    color: #f5f5f5;
    letter-spacing: -0.02em;
}

.auth-tagline-text strong {
    color: var(--hm-red);
    font-weight: 800;
}

.auth-acc-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.auth-acc-row li {
    width: clamp(2.4rem, 3vw, 3rem);
    height: clamp(2.4rem, 3vw, 3rem);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.5rem, 2vw, 2rem);
    opacity: 0.92;
    transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.auth-acc-row li:hover {
    color: #fecaca;
    opacity: 1;
    transform: translateY(-2px);
}

.auth-brand-meta {
    margin: 0;
    padding-left: 1rem;
    border-left: 4px solid var(--hm-red);
    color: #d4d4d4;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.auth-card-wrap {
    width: 100%;
    max-width: clamp(400px, 38vw, 540px);
    flex: 0 0 clamp(400px, 38vw, 540px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.auth-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: 20px;
    padding: clamp(2rem, 3vw, 3rem) clamp(1.75rem, 2.5vw, 2.75rem);
    backdrop-filter: blur(14px);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.auth-card-head {
    text-align: center;
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.auth-avatar {
    width: clamp(60px, 5vw, 72px);
    height: clamp(60px, 5vw, 72px);
    margin: 0 auto 1.1rem;
    border-radius: 999px;
    background: var(--hm-red);
    color: var(--hm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}

.auth-card-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
}

.auth-card-head p {
    margin: 0.45rem 0 0;
    color: var(--hm-muted);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.45;
}

.auth-form > * + * {
    margin-top: 1.35rem;
}

.auth-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 600;
    color: #d4d4d4;
}

.auth-field {
    position: relative;
}

.auth-field i.auth-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
    font-size: 1rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--hm-input);
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    color: var(--hm-white);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    padding: 0.95rem 1rem 0.95rem 2.65rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
    border-color: var(--hm-red);
    box-shadow: 0 0 0 3px var(--hm-red-soft);
}

.auth-input.is-invalid {
    border-color: var(--hm-red);
    background: rgba(225, 29, 46, 0.06);
}

.auth-toggle-pass {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #8a8a8a;
    cursor: pointer;
    padding: 0.35rem;
    font-size: 1rem;
}

.auth-toggle-pass:hover {
    color: var(--hm-white);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #cfcfcf;
    font-size: clamp(0.88rem, 1vw, 0.95rem);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    accent-color: var(--hm-red);
    width: 1.1rem;
    height: 1.1rem;
}

.auth-link {
    color: var(--hm-red);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 0.92rem);
}

.auth-link:hover {
    color: #fca5a5;
}

.auth-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: var(--hm-red);
    color: var(--hm-white);
    font-weight: 700;
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    padding: 1rem 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: background 0.15s ease, transform 0.1s ease;
}

.auth-btn:hover {
    background: var(--hm-red-hover);
}

.auth-btn:active {
    transform: scale(0.99);
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert-ok {
    background: rgba(225, 29, 46, 0.1);
    border: 1px solid rgba(225, 29, 46, 0.35);
    color: #ffb4b0;
}

.auth-alert-err {
    color: #ff8a84;
    font-size: 0.82rem;
    margin-top: 0.45rem;
}

.auth-foot {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--hm-muted);
    font-size: clamp(0.88rem, 1vw, 0.95rem);
}

.auth-copy {
    text-align: center;
    margin: 1.5rem 0 0;
    color: #6a6a6a;
    font-size: 0.78rem;
}

.auth-copy a {
    color: inherit;
    text-decoration: none;
}

.auth-copy a:hover {
    color: #aaa;
}

.auth-statusbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 0.85rem clamp(1.5rem, 4vw, 3rem);
    background: rgba(8, 8, 8, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.auth-statusbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #e5e5e5;
    min-width: 0;
}

.auth-statusbar-item > i {
    color: #e11d2e;
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.auth-statusbar-item span {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.auth-statusbar-item small {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8a8a8a;
    font-weight: 700;
}

.auth-statusbar-item strong {
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 700;
    color: #f5f5f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48vw;
}

@media (min-width: 1400px) {
    .auth-shell--split {
        padding-left: 4vw;
        padding-right: 4vw;
    }
}

@media (max-width: 960px) {
    .auth-shell {
        align-items: center;
    }

    .auth-shell--split {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem 1.25rem 5.5rem;
    }

    .auth-brand {
        flex: none;
        min-height: 0;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .auth-brand-inner {
        align-items: center;
        justify-content: flex-start;
        padding: 0;
    }

    .auth-brand-logo,
    .auth-tagline {
        align-self: center;
    }

    .auth-tagline {
        max-width: 100%;
        text-align: left;
    }

    .auth-acc-row {
        justify-content: center;
    }

    .auth-brand-meta {
        border-left: 0;
        padding-left: 0;
        border-top: 4px solid var(--hm-red);
        padding-top: 0.85rem;
        margin-top: 0.5rem;
    }

    .auth-card-wrap {
        flex: none;
        max-width: 480px;
        width: 100%;
    }

    .auth-statusbar {
        justify-content: center;
        padding: 0.65rem 1rem;
    }

    .auth-statusbar-item strong {
        max-width: 56vw;
    }
}

/* —— Vista nueva (vitrina): tarjeta clara como la tienda —— */
.auth-body--vitrina {
    font-family: Inter, Figtree, system-ui, sans-serif;
}
.auth-body--vitrina .auth-bg {
    filter: blur(12px) brightness(0.38) saturate(0.85);
    transform: scale(1.06);
}
.auth-body--vitrina .auth-vignette {
    background:
        linear-gradient(105deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(20, 20, 20, 0.55) 100%),
        radial-gradient(ellipse at 80% 40%, rgba(220, 23, 51, 0.16), transparent 45%);
}
.auth-body--vitrina .auth-brand-home {
    display: inline-block;
    text-decoration: none;
}
.auth-body--vitrina .auth-brand-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.25rem;
}
.auth-body--vitrina .auth-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #dc1733;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}
.auth-body--vitrina .auth-chip:hover { background: #b91129; }
.auth-body--vitrina .auth-chip--ghost {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
}
.auth-body--vitrina .auth-chip--ghost:hover {
    background: rgba(255,255,255,0.2);
}
.auth-body--vitrina .auth-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    color: #181818;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: none;
}
.auth-body--vitrina .auth-card-head h2 {
    color: #181818;
}
.auth-body--vitrina .auth-card-head p {
    color: #4b5563;
}
.auth-body--vitrina .auth-avatar {
    background: #dc1733;
}
.auth-body--vitrina .auth-label {
    color: #374151;
}
.auth-body--vitrina .auth-input {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.14);
    color: #181818;
    -webkit-text-fill-color: #181818;
    caret-color: #181818;
}
.auth-body--vitrina .auth-input::placeholder {
    color: #9ca3af;
    -webkit-text-fill-color: #9ca3af;
    opacity: 1;
}
.auth-body--vitrina .auth-input:focus {
    border-color: #dc1733;
    box-shadow: 0 0 0 3px rgba(220, 23, 51, 0.18);
    background: #fff;
}
.auth-body--vitrina .auth-input.is-invalid {
    background: #fff5f5;
}
/* Chrome/Edge autofill: evita el fondo gris/amarillo sobre la tarjeta blanca */
.auth-body--vitrina .auth-input:-webkit-autofill,
.auth-body--vitrina .auth-input:-webkit-autofill:hover,
.auth-body--vitrina .auth-input:-webkit-autofill:focus,
.auth-body--vitrina .auth-input:-webkit-autofill:active {
    -webkit-text-fill-color: #181818 !important;
    caret-color: #181818;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 99999s ease-out 0s;
    border: 1px solid rgba(0,0,0,0.14);
}
.auth-body--vitrina .auth-input:-webkit-autofill:focus {
    border-color: #dc1733;
    box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(220, 23, 51, 0.18) !important;
}
.auth-body--vitrina .auth-hint {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
}
.auth-body--vitrina .auth-file {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 12px;
    color: #181818;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}
.auth-body--vitrina .auth-file.is-invalid {
    border-color: #dc1733;
    background: #fff5f5;
}
.auth-body--vitrina .auth-file::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.45rem 0.85rem;
    border: 0;
    border-radius: 8px;
    background: rgba(220, 23, 51, 0.12);
    color: #b91c1c;
    font-weight: 700;
    cursor: pointer;
}
.auth-body--vitrina .auth-card .text-slate-400,
.auth-body--vitrina .auth-card .text-slate-500 {
    color: #6b7280 !important;
}
.auth-body--vitrina .auth-card .text-red-400 {
    color: #b91c1c !important;
}
.auth-body--vitrina .auth-field i.auth-field-icon,
.auth-body--vitrina .auth-toggle-pass {
    color: #9ca3af;
}
.auth-body--vitrina .auth-toggle-pass:hover {
    color: #181818;
}
.auth-body--vitrina .auth-check {
    color: #4b5563;
}
.auth-body--vitrina .auth-link {
    color: #dc1733;
}
.auth-body--vitrina .auth-link:hover {
    color: #b91129;
}
.auth-body--vitrina .auth-btn {
    background: #dc1733;
    border-radius: 12px;
}
.auth-body--vitrina .auth-btn:hover {
    background: #b91129;
}
.auth-body--vitrina .auth-alert-ok {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
}
.auth-body--vitrina .auth-alert-err {
    color: #b91c1c;
}
.auth-body--vitrina .auth-foot {
    color: #6b7280;
}
.auth-body--vitrina .auth-copy {
    color: rgba(255,255,255,0.72);
}
.auth-body--vitrina .auth-statusbar {
    background: #141414;
    border-top-color: rgba(255,255,255,0.1);
}
