﻿:root {
    --bg: #0b0b0b;
    --card: rgba(255,255,255,.08);
    --card-border: rgba(255,255,255,.14);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.70);
    --ring: rgba(210,93,23,.40);
    --primary: #d25d17;
}

html, body {
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    background: radial-gradient(1200px 700px at 18% 18%, rgba(210,93,23,.30), transparent 60%), radial-gradient(900px 600px at 85% 20%, rgba(210,93,23,.18), transparent 55%), radial-gradient(800px 600px at 55% 95%, rgba(255,255,255,.05), transparent 55%), linear-gradient(180deg, #050505 0%, var(--bg) 100%);
    color: var(--text);
    overflow-x: hidden;
}

    /* subtle grain */
    body:before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
        mix-blend-mode: overlay;
        opacity: .22;
    }

.auth-wrap {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.auth-left {
    padding: 40px;
    position: relative;
}

.auth-title {
    font-size: 28px;
    letter-spacing: -.02em;
    margin: 18px 0 6px;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--muted);
    margin: 0 0 22px;
}

.divider {
    height: 1px;
    background: rgba(255,255,255,.10);
    margin: 18px 0;
}

.auth-right {
    padding: 40px;
    border-left: 1px solid rgba(255,255,255,.10);
    background: radial-gradient(600px 220px at 30% 0%, rgba(255,255,255,.10), transparent 60%), radial-gradient(600px 260px at 75% 100%, rgba(210,93,23,.14), transparent 55%), rgba(0,0,0,.10);
}

.form-label {
    color: rgba(255,255,255,.82);
    font-weight: 600;
    font-size: .9rem;
}

/* === TAMAÑOS / ACOMODO (igual que la 1ª opción) === */
.form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text);
    border-radius: 14px;
    padding: .85rem .95rem;
}

    .form-control::placeholder {
        color: rgba(255,255,255,.45);
    }

    .form-control:focus {
        background: rgba(255,255,255,.08);
        border-color: rgba(210,93,23,.75);
        box-shadow: 0 0 0 .25rem var(--ring);
        color: var(--text);
    }

.input-group .btn {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
    padding: .85rem .95rem; /* para que iguale altura del input */
}

    .input-group .btn:hover {
        background: rgba(255,255,255,.09);
    }

.btn-primary {
    background: linear-gradient(90deg, #b94f12, var(--primary));
    border: 0;
    border-radius: 14px;
    padding: .9rem 1rem;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(210,93,23,.22);
}

    .btn-primary:disabled {
        opacity: .78;
    }

.small-hint {
    color: rgba(255,255,255,.55);
}

.msg {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(244,63,94,.12);
    border: 1px solid rgba(244,63,94,.25);
    color: rgba(255,255,255,.90);
}

.fade-in {
    animation: fadeIn .35s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .auth-left {
        padding: 28px;
    }

    .auth-right {
        padding: 28px;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.10);
    }
}

/* ilustración */
.illu-wrap {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
}

.illu-caption {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
}

.stroke-primary {
    stroke: var(--primary);
}

.fill-primary {
    fill: var(--primary);
}

.logo-cuera-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: .95;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}
/* === FOOTER GLOBAL CON CINTILLA === */
.page-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    z-index: 5;
    pointer-events: none; /* no interfiere con clicks */
    background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100% );
}

    .page-footer .cintilla {
        width: 100%;
        height: 28px;
        margin: 8px 0;
        background-image: url('../img/cintilla.png');
        background-repeat: repeat-x;
        background-position: center;
        background-size: contain;
        opacity: .95;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
    }

.logo-hanging-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
}

.logo-hanging {
    position: relative;
    background: #ffffff;
    border-radius: 0 0 22px 22px;
    padding: 14px 18px 12px;
    box-shadow: 0 18px 30px rgba(0,0,0,.35), 0 6px 10px rgba(0,0,0,.25);
}

    .logo-hanging::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 6px;
        border-radius: 6px;
        background: linear-gradient( 90deg, rgba(255,255,255,.15), rgba(255,255,255,.55), rgba(255,255,255,.15) );
        box-shadow: 0 2px 6px rgba(0,0,0,.35);
    }

.logo-uat {
    height: 99px;
    width: auto;
    display: block;
}

.title-accent {
    width: 200px;
    height: 2px;
    background: linear-gradient( 90deg, #d25d17 0%, rgba(210,93,23,.35) 70%, rgba(210,93,23,0) 100% );
    margin: 14px 0 18px;
    border-radius: 2px;
}

.borderadius {
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

.auth-right {
    display: flex;
    flex-direction: column;
}


.login-logos {
    margin-top: 22px;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap; /* soporta muchos logos */
    justify-content: center;
    align-items: center;
    gap: 26px;
    max-width: 1500px;
}

.login-logo {
    max-height: 44px;
    width: auto;
    opacity: .85;
    filter: grayscale(100%) brightness(1.15);
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}

    .login-logo:hover {
        opacity: 1;
        filter: none;
        transform: translateY(-1px);
    }

.ocultar {
    display: none !important;
}
