@import url('https://fonts.googleapis.com/css?family=Muli:400,300,700,400italic&display=swap');

:root {
    --gasco-azul: #126EAD;
    --gasco-azul-claro: #00A1DE;
    --gasco-rojo: #DA291C;
    --gasco-rojo-oscuro: #B3211C;
    --gasco-gris-texto: #444;
    --gasco-gris-borde: #D5D7DC;
    --gasco-gris-fondo: #F1F1F1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Muli', -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--gasco-gris-fondo);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fondo decorativo con íconos flotando lentamente. Puramente ambiental: no
   interactivo, no se imprime, y se desactiva si el usuario prefiere menos
   movimiento en pantalla. */
.floating-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2.6rem;
    opacity: 0.10;
    filter: grayscale(15%);
    animation: float-drift 20s ease-in-out infinite;
}

.fi-1 { left: 6%;  top: 12%; font-size: 3.2rem; animation-duration: 22s; animation-delay: 0s; }
.fi-2 { left: 88%; top: 18%; animation-duration: 17s; animation-delay: 1.5s; }
.fi-3 { left: 15%; top: 78%; animation-duration: 19s; animation-delay: 3s; }
.fi-4 { left: 80%; top: 70%; font-size: 3rem; animation-duration: 24s; animation-delay: 0.8s; }
.fi-5 { left: 48%; top: 8%;  animation-duration: 16s; animation-delay: 2.2s; }
.fi-6 { left: 92%; top: 46%; animation-duration: 21s; animation-delay: 4s; }
.fi-7 { left: 4%;  top: 46%; animation-duration: 18s; animation-delay: 1s; }
.fi-8 { left: 60%; top: 88%; animation-duration: 23s; animation-delay: 2.6s; }

@keyframes float-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(12px, -22px) rotate(6deg); }
    50%      { transform: translate(-8px, -10px) rotate(-4deg); }
    75%      { transform: translate(10px, 14px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
    .floating-icon, .chart-point {
        animation: none !important;
    }
}

@media print {
    .floating-bg {
        display: none !important;
    }
}

.brand-logo {
    display: block;
    margin: 0 auto 1.5rem;
    height: 42px;
    width: auto;
}

.card {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    border-top: 4px solid var(--gasco-rojo);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 380px;
}

.card h1 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #222;
    text-align: center;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--gasco-gris-texto);
}

.field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gasco-gris-borde);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

button {
    width: 100%;
    padding: 0.7rem;
    background: var(--gasco-rojo);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--gasco-rojo-oscuro);
}

.alert {
    background: #fdecea;
    color: var(--gasco-rojo-oscuro);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.alert.success {
    background: #e6f4ea;
    color: #1e7a34;
}

.muted {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.muted a {
    color: var(--gasco-azul);
    text-decoration: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.top-bar a {
    color: var(--gasco-azul);
    text-decoration: none;
    font-size: 0.9rem;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-title img {
    height: 28px;
    width: auto;
}

.brand-title h1 {
    margin: 0;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gasco-gris-texto);
}

.user-box a {
    color: var(--gasco-azul);
    text-decoration: none;
}
