
/* =========================================
   SIGA - LOGIN MOBILE
   ========================================= */

:root {
    --siga-primary: #1769aa;
    --siga-primary-dark: #104c80;
    --siga-text: #263445;
    --siga-muted: #7b8a9b;
    --siga-border: #e1e8f0;
}

* {
    box-sizing: border-box;
}

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

body.login-page {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--siga-text);
    background: linear-gradient(145deg, #071d35 0%, #0c365c 50%, #1769aa 100%);
    position: relative;
    overflow-x: hidden;
}

/* Decoración del fondo */

body.login-page::before,
body.login-page::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}

body.login-page::before {
    width: 340px;
    height: 340px;
    top: -170px;
    right: -120px;
    background: rgba(255,255,255,.06);
}

body.login-page::after {
    width: 280px;
    height: 280px;
    bottom: -150px;
    left: -120px;
    background: rgba(255,255,255,.05);
}

/* Contenedor */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
    position: relative;
    z-index: 1;
}

.login-content {
    width: 100%;
    max-width: 420px;
}

/* Encabezado */

.login-header {
    text-align: center;
    color: #fff;
    margin-bottom: 28px;
}

.login-logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-logo-placeholder {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    margin: 0 0 6px;
}

.login-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.82);
}

/* Tarjeta */

.login-card {
    width: 100%;
    background: #fff;
    border-radius: 22px;
    padding: 35px 30px;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.login-welcome {
    text-align: center;
    margin-bottom: 28px;
}

.login-welcome h2 {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1d344c;
}

.login-welcome p {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--siga-primary);
}

.login-welcome span {
    font-size: 12px;
    color: var(--siga-muted);
}

/* Formulario */

.login-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #35475b;
    margin-bottom: 8px;
}

.login-form .input-group {
    min-height: 49px;
}

.login-form .input-group-text {
    background: #f5f8fb;
    border: 1px solid var(--siga-border);
    border-right: 0;
    color: #71869c;
    padding: 0 14px;
    border-radius: 10px 0 0 10px;
}

.login-form .form-control {
    min-height: 49px;
    border: 1px solid var(--siga-border);
    border-left: 0;
    font-size: 14px;
    box-shadow: none;
    padding: 10px 12px;
}

.login-form .form-control:focus {
    border-color: var(--siga-primary);
}

.login-form .input-group:focus-within .input-group-text {
    border-color: var(--siga-primary);
}

.password-toggle {
    background: #f5f8fb;
    border: 1px solid var(--siga-border);
    border-left: 0;
    color: #71869c;
    border-radius: 0 10px 10px 0;
    padding: 0 14px;
}

.password-toggle:hover {
    color: var(--siga-primary);
    background: #edf4fa;
}

/* Botón */

.login-button {
    width: 100%;
    min-height: 51px;
    border: none;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(110deg, #1769aa, #0e4f86);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(23,105,170,.23);
    transition: all .2s ease;
}

.login-button:hover {
    background: linear-gradient(110deg, #125b96, #0b3f6d);
    transform: translateY(-1px);
}

/* Mensajes */

.login-card .alert {
    font-size: 13px;
    border-radius: 9px;
}

/* Pie */

.login-footer {
    margin-top: 27px;
    text-align: center;
    color: #fff;
}

.login-footer p {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
}

.login-footer span {
    font-size: 12px;
    color: rgba(255,255,255,.75);
}

.login-copyright {
    margin-top: 17px;
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,.55);
}

/* Pantallas pequeñas */

@media (max-width: 380px) {
    .login-container {
        padding: 25px 14px;
    }

    .login-card {
        padding: 28px 21px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-logo {
        width: 78px;
        height: 78px;
    }
}

/* Escritorio: conserva presentación móvil centrada */

@media (min-width: 768px) {
    .login-container {
        padding: 40px 20px;
    }
}
