/* Pantalla de login STIGASCloud.
   Pagina standalone (no usa Site.Master ni site.css). */

* , *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    background: #0b1118;
}

.tn-login-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 56px);
    overflow: hidden;
}

.tn-login-foto {
    position: fixed;
    inset: 0;
    background-image: url('../../dist/img/login_fondo.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.01);
}
.tn-login-foto::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 48%, rgba(255, 255, 255, .18), transparent 28%),
        linear-gradient(90deg, rgba(7, 12, 20, .56), rgba(7, 12, 20, .18) 42%, rgba(7, 12, 20, .5)),
        linear-gradient(180deg, rgba(7, 12, 20, .18), rgba(7, 12, 20, .52));
}

.tn-login-panel {
    position: relative;
    z-index: 1;
    width: 392px;
    max-width: 100%;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 24px;
    padding: 30px 30px 26px;
    box-shadow: 0 30px 70px -12px rgba(10, 20, 40, .38), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.tn-login-logo {
    width: 200px;
    height: auto;
    margin-bottom: 14px;
}
.tn-login-panel h1 {
    font-size: 1.22rem;
    line-height: 1.15;
    font-weight: 750;
    margin: 0 0 22px 0;
    color: #1d1d1f;
}
.tn-login-titulo-normal {
    display: block;
    margin-top: 5px;
    color: #5c6b85;
    font-size: .9rem;
    font-weight: 520;
}
.tn-login-desc {
    font-size: 0.86rem;
    color: #5c6b85;
    margin: 0 0 18px 0;
    line-height: 1.45;
}

/* Pantalla de cambio obligatorio de clave: mismo panel de login, pero con este icono para que
   se note a simple vista que no es el login normal. */
.tn-clave-icono {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef3e7;
    color: #b56a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.tn-login-alert {
    width: 100%;
    background: rgba(255, 59, 48, .1);
    color: #a01812;
    border: 1px solid rgba(255, 59, 48, .18);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.84rem;
    margin-bottom: 16px;
    text-align: left;
}
.tn-login-alert-exito {
    background: rgba(52, 199, 89, .12);
    color: #16763a;
    border-color: rgba(52, 199, 89, .2);
}

.tn-login-campo {
    width: 100%;
    margin-bottom: 12px;
    text-align: left;
}
.tn-login-campo label {
    display: block;
    font-size: 0.78rem;
    color: #515154;
    margin-bottom: 7px;
    font-weight: 650;
}
.tn-login-input-wrap {
    position: relative;
}
.tn-login-input {
    width: 100%;
    min-height: 42px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(210, 210, 215, .95);
    border-radius: 13px;
    padding: 11px 13px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1d1d1f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
    appearance: none;
}
.tn-login-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, .15);
}
.tn-login-input-wrap .tn-login-input {
    padding-right: 42px;
}
.tn-login-toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6e6e73;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 4px;
    display: flex;
}
.tn-login-toggle-pass:hover {
    color: #1d1d1f;
}

.tn-login-olvido {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0071e3;
    font-size: 0.82rem;
    font-weight: 560;
    text-decoration: none;
    margin-top: 6px;
}
.tn-login-olvido:hover {
    text-decoration: underline;
}
.tn-login-olvido i {
    font-size: 0.9rem;
}

.tn-login-acciones {
    width: 100%;
    margin-top: 10px;
}
.tn-login-btn {
    width: 100%;
    min-height: 43px;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 11px 26px;
    font-weight: 680;
    font-size: 0.95rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 113, 227, .24);
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.tn-login-btn:hover {
    background: #0077ed;
    box-shadow: 0 12px 28px rgba(0, 113, 227, .3);
    transform: translateY(-1px);
}
.tn-login-btn:active {
    transform: translateY(0);
}

.tn-login-badge-ia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 7px 11px;
    background: rgba(0, 113, 227, .08);
    color: #1d1d1f;
    border: 1px solid rgba(0, 113, 227, .12);
    border-radius: 999px;
    font-size: 0.74rem;
    line-height: 1.35;
    font-weight: 560;
    max-width: 100%;
    width: auto;
}
.tn-login-badge-ia i {
    font-size: 1rem;
    color: #0071e3;
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .tn-login-shell {
        align-items: center;
        justify-content: center;
        padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    }
    .tn-login-foto {
        background-position: center;
    }
    .tn-login-foto::after {
        background:
            linear-gradient(180deg, rgba(7, 12, 20, .18), rgba(7, 12, 20, .78)),
            linear-gradient(90deg, rgba(7, 12, 20, .42), rgba(7, 12, 20, .28));
    }
    .tn-login-panel {
        width: min(100%, 390px);
        padding: 26px 22px 22px;
        border-radius: 22px;
    }
    .tn-login-logo {
        width: 200px;
        margin-bottom: 14px;
    }
}

@media (max-height: 690px) and (min-width: 761px) {
    .tn-login-panel {
        padding: 26px 28px 22px;
    }
    .tn-login-logo {
        width: 200px;
        margin-bottom: 12px;
    }
    .tn-login-desc {
        margin-bottom: 16px;
    }
    .tn-login-badge-ia {
        margin-top: 14px;
    }
}
