/* FAMATEX QR — Auth (login claro y moderno) */
:root {
    --auth-green: #00a34d;
    --auth-green-dark: #007a39;
    --auth-lime: #c8f000;
    --auth-ink: #102018;
    --auth-muted: #5f6f66;
    --auth-line: #d9e6dd;
    --auth-bg: #f4f8f5;
    --auth-white: #ffffff;
    --auth-radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

.auth-body {
    min-height: 100vh;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--auth-ink);
    background: var(--auth-bg);
    -webkit-font-smoothing: antialiased;
}

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

.auth-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #fff;
    background:
        radial-gradient(900px 500px at 20% 0%, rgba(200, 240, 0, .22), transparent 55%),
        radial-gradient(700px 420px at 90% 80%, rgba(0, 163, 77, .45), transparent 50%),
        linear-gradient(155deg, #063820 0%, #0a5c32 42%, #00a34d 100%);
    overflow: hidden;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .45;
    pointer-events: none;
}

.auth-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    animation: authRise .6s ease both;
}

.auth-logo {
    display: block;
    width: min(260px, 80%);
    height: auto;
    margin: 0 auto 1.25rem;
}

.auth-logo--hero {
    margin: 0 0 1.5rem;
    width: min(300px, 100%);
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.25));
}

.auth-hero-title {
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.65rem, 2.8vw, 2.15rem);
    letter-spacing: -.02em;
    margin: 0 0 .75rem;
    line-height: 1.15;
}

.auth-hero-text {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255,255,255,.88);
}

.auth-hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .65rem;
}

.auth-hero-list li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 500;
    color: #fff;
}

.auth-hero-list li::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--auth-lime);
    box-shadow: 0 0 0 4px rgba(200, 240, 0, .2);
    flex: 0 0 auto;
}

.auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(0,163,77,.08), transparent 60%),
        var(--auth-bg);
}

.auth-card {
    width: min(420px, 100%);
    background: var(--auth-white);
    border: 1px solid var(--auth-line);
    border-radius: calc(var(--auth-radius) + 4px);
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 20px 50px rgba(16, 32, 24, .08);
    animation: authRise .55s .08s ease both;
}

.auth-title {
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: -.02em;
    margin: 0 0 .35rem;
    color: var(--auth-ink);
}

.auth-subtitle {
    margin: 0 0 1.5rem;
    color: var(--auth-muted);
    font-size: .98rem;
    line-height: 1.45;
}

.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: .75rem 1rem;
    font-size: .9rem;
    margin-bottom: 1.1rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: .4rem;
}

.auth-field input {
    width: 100%;
    border: 1.5px solid var(--auth-line);
    border-radius: 12px;
    padding: .85rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--auth-ink);
    background: #fbfcfb;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-field input::placeholder {
    color: #93a39a;
}

.auth-field input:focus {
    border-color: var(--auth-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 163, 77, .15);
}

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

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--auth-muted);
    font-size: .92rem;
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--auth-green);
}

.auth-forgot {
    color: var(--auth-green-dark);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot:hover {
    color: var(--auth-green);
    text-decoration: underline;
}

.auth-btn {
    margin-top: .35rem;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: .95rem 1rem;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--auth-green), var(--auth-green-dark));
    box-shadow: 0 12px 28px rgba(0, 163, 77, .28);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-btn:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 32px rgba(0, 163, 77, .34);
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-copy {
    margin: 1.25rem 0 0;
    font-size: .8rem;
    color: #7d8d84;
    text-align: center;
}

@keyframes authRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

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

    .auth-hero {
        display: none;
    }

    .auth-main {
        padding: 2rem 1.15rem 2.5rem;
        min-height: 100vh;
    }

    .auth-card {
        padding: 1.6rem 1.25rem 1.35rem;
    }
}
