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

:root {
    --auth-texto: #111216;
    --auth-secundario: #747985;
    --auth-borde: #e4e5e8;
    --auth-negro: #0b0b0d;
    --auth-negro-2: #151517;
    --auth-dorado: #f2c94c;
    --auth-dorado-fuerte: #ffdc47;
    --auth-dorado-oscuro: #9b7600;
    --auth-verde: #1f9d55;
    --auth-rojo: #c62828;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    font-family: "Inter", Arial, sans-serif;
    color: var(--auth-texto);
    background: #09090a;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(rgba(0,0,0,.10), rgba(0,0,0,.22)),
        url("assets-creative/fondo-creative.jpg") center top / cover no-repeat;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 9%, rgba(255,214,45,.10), transparent 28%),
        rgba(0,0,0,.08);
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.auth-topbar {
    padding: 18px 16px 4px;
    background: transparent;
}

.auth-topbar-inner,
.auth-main,
.auth-footer-inner {
    width: min(100% - 28px, 470px);
    margin-inline: auto;
}

.auth-topbar-inner { display: flex; justify-content: center; }

.auth-brand {
    width: 270px;
    max-width: 78vw;
    display: block;
    text-decoration: none;
    filter: drop-shadow(0 0 22px rgba(255,210,26,.25));
}

.auth-brand img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.auth-main {
    display: flex;
    align-items: flex-start;
    padding: 8px 0 34px;
}

.auth-card {
    width: 100%;
    overflow: hidden;
    background: rgba(255,255,255,.985);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 26px;
    box-shadow:
        0 22px 70px rgba(0,0,0,.42),
        0 0 0 1px rgba(242,201,76,.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-card-accent {
    height: 5px;
    background: linear-gradient(90deg, #8f6900, #f2c94c, #fff1a6, #f2c94c, #8f6900);
    background-size: 220% 100%;
    animation: authShimmer 6s linear infinite;
}

@keyframes authShimmer {
    from { background-position: 210% 0; }
    to { background-position: -110% 0; }
}

.auth-card-body { padding: 28px 24px 26px; }

.auth-eyebrow {
    color: var(--auth-dorado-oscuro);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.auth-title {
    margin-top: 5px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.auth-description {
    margin-top: 9px;
    color: var(--auth-secundario);
    font-size: 13px;
    line-height: 1.58;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 25px;
}

.auth-field { display: grid; gap: 7px; }
.auth-field label { font-size: 12px; font-weight: 800; }
.auth-input-wrap { position: relative; }

.auth-input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--auth-borde);
    border-radius: 16px;
    background: #fff;
    color: var(--auth-texto);
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.auth-input::placeholder { color: #8c919b; }
.auth-input.con-boton { padding-right: 56px; }
.auth-input:focus {
    border-color: #d0aa1f;
    box-shadow: 0 0 0 3px rgba(242,201,76,.18), 0 7px 18px rgba(0,0,0,.035);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #686b70;
    cursor: pointer;
}
.auth-password-toggle:hover { background: #f5f5f5; }
.auth-password-toggle svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border: 1px solid #e5bc23;
    border-radius: 999px;
    background: linear-gradient(180deg, #171717, #0c0c0d);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .035em;
    cursor: pointer;
    transition: transform .15s, opacity .15s, box-shadow .15s;
    box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 0 22px rgba(242,201,76,.12);
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(0,0,0,.22), 0 0 27px rgba(242,201,76,.18); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: .58; cursor: wait; transform: none; }

.auth-secondary-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 17px;
    color: #666b73;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-underline-offset: 4px;
}
.auth-secondary-link:hover { color: #272727; text-decoration: underline; text-decoration-color: var(--auth-dorado); }

.auth-status {
    display: none;
    margin-top: 15px;
    padding: 11px 12px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}
.auth-status.visible { display: block; }
.auth-status.error { color: #9e2222; background: #fff0f0; border: 1px solid #f1cccc; }
.auth-status.ok { color: #166b38; background: #edf9f1; border: 1px solid #cfead8; }
.auth-status.info { color: #5b4a0d; background: #fff9e6; border: 1px solid #f0dfa0; }

.auth-note {
    margin-top: 19px;
    padding-top: 17px;
    border-top: 1px solid #ececef;
    color: #8a8f98;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.auth-success-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #edf9f1;
    color: var(--auth-verde);
    border: 1px solid #cfead8;
    font-size: 30px;
    font-weight: 800;
}

.auth-actions { display: grid; gap: 10px; margin-top: 22px; }
.auth-button-secondary {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedfe3;
    border-radius: 999px;
    background: #fff;
    color: var(--auth-texto);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.auth-button-secondary:hover { border-color: #d0aa1f; box-shadow: 0 0 0 3px rgba(242,201,76,.10); }

.auth-footer { padding: 0 16px 24px; }
.auth-footer-inner {
    color: rgba(255,255,255,.55);
    font-size: 10px;
    text-align: center;
    line-height: 1.5;
}

@media (min-width: 700px) {
    .auth-topbar { padding-top: 24px; }
    .auth-brand { width: 290px; }
    .auth-main { padding-bottom: 52px; }
    .auth-card-body { padding: 32px 30px 30px; }
}

@media (max-width: 430px) {
    .auth-brand { width: 230px; }
    .auth-topbar { padding-top: 10px; }
    .auth-main { width: min(100% - 20px, 470px); padding-top: 4px; }
    .auth-card-body { padding: 23px 17px 22px; }
    .auth-title { font-size: 27px; }
}

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