/* Pantalla de login STIGASCloud - card centrada sobre foto full-bleed.
   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;
}

.tn-login-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tn-login-foto {
    position: fixed;
    inset: 0;
    background-image: url('../../dist/img/login_fondo.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.tn-login-foto::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, .35);
}

.tn-login-panel {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.tn-login-logo {
    width: 175px;
    height: auto;
    margin-bottom: 24px;
}
.tn-login-panel h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #18181b;
}
.tn-login-titulo-normal {
    font-weight: 400;
}
.tn-login-desc {
    font-size: 0.9rem;
    color: #71717a;
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.tn-login-alert {
    width: 100%;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    text-align: left;
}
.tn-login-alert-exito {
    background: #dcfce7;
    color: #15803d;
}

.tn-login-campo {
    width: 100%;
    margin-bottom: 16px;
    text-align: left;
}
.tn-login-campo label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #3f3f46;
    margin-bottom: 6px;
}
.tn-login-input-wrap {
    position: relative;
}
.tn-login-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #18181b;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tn-login-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,.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: #71717a;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 4px;
    display: flex;
}
.tn-login-toggle-pass:hover {
    color: #18181b;
}

.tn-login-olvido {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2563EB;
    font-size: 0.86rem;
    text-decoration: none;
    margin-top: 8px;
}
.tn-login-olvido:hover {
    text-decoration: underline;
}
.tn-login-olvido i {
    font-size: 0.9rem;
}

.tn-login-acciones {
    width: 100%;
    margin-top: 12px;
}
.tn-login-btn {
    width: 100%;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.tn-login-btn:hover {
    background: #1D4ED8;
}

.tn-login-badge-ia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 16px;
    background: #EFF6FF;
    color: #2563EB;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    width: fit-content;
}
.tn-login-badge-ia i {
    font-size: 1rem;
}

@media (max-width: 520px) {
    .tn-login-panel {
        padding: 28px 24px;
        border-radius: 16px;
    }
    .tn-login-logo {
        width: 145px;
        margin-bottom: 20px;
    }
}
