/* ===========================================================
   SIRE - Estilos del Login (independiente del resto del sistema)
   Paleta tomada del logo: azul -> verde -> naranja
   =========================================================== */

* {
    box-sizing: border-box;
}

body.sire-login {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Fondo azul oscuro profesional, mismo tono de la captura */
    background: radial-gradient(circle at 50% 20%, #2a3f5f 0%, #1a2942 45%, #0f1c30 100%);
    color: #fff;
    overflow-x: hidden;
}

/* ---------- Logo superior ---------- */
.sire-logo {
    width: 130px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Tarjeta glassmorphism ---------- */
.login-container {
    background: rgba(255, 255, 255, 0.06);
    padding: 40px 35px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    width: 100%;
    max-width: 360px;
}

.login-container h2 {
    text-align: center;
    margin: 0 0 28px;
    color: #fff;
    font-weight: 600;
    font-size: 1.6em;
    letter-spacing: 0.5px;
}

/* ---------- Mensaje de error ---------- */
.login-error {
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ffd6d1;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    margin-bottom: 18px;
}

/* ---------- Campos ---------- */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85em;
}

.input-group .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(calc(-50% + 14px));
    color: rgba(255, 255, 255, 0.55);
    font-size: 1em;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 12px 44px 12px 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.input-group input:focus {
    border-color: #2eb7e6;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Icono de ojo (mostrar/ocultar contraseña) */
.toggle-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(calc(-50% + 14px));
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
    transition: color 0.25s ease;
}

.toggle-icon:hover {
    color: #fff;
}

/* ---------- Botón con degradado del logo ---------- */
button[type="submit"] {
    width: 100%;
    padding: 13px;
    border: none;
    background: linear-gradient(90deg, #2eb7e6 0%, #36c98a 45%, #f7941d 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.12s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

button[type="submit"]:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* ---------- Enlaces inferiores ---------- */
.links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85em;
}

.links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.25s ease;
}

.links a:hover {
    color: #2eb7e6;
    text-decoration: underline;
}

/* ---------- Barra inferior de WhatsApp ---------- */
.app-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(8, 17, 30, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 1em;
}

.app-banner i.fa-mobile-screen-button {
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.85);
}

.app-banner .wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-banner .wa-link i {
    font-size: 1.2em;
}

.app-banner .wa-link:hover {
    color: #1ebe57;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .app-banner {
        font-size: 0.85em;
        padding: 12px 14px;
    }
    .sire-logo {
        width: 100px;
    }
    .login-container {
        max-width: 92%;
        padding: 32px 24px;
    }
}
