/* ─── Reset / Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    background: #070d1f;
}

/* ─── Fondo SVG escena logística ───────────────────────────────── */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-scene svg { width: 100%; height: 100%; }

/* Animaciones de fondo */
@keyframes flyPlane {
    0%   { transform: translate(0,0); }
    50%  { transform: translate(-30px, 12px); }
    100% { transform: translate(0,0); }
}
@keyframes floatBox {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}
@keyframes shimmerOcean {
    0%   { opacity:.06; }
    50%  { opacity:.14; }
    100% { opacity:.06; }
}
.anim-plane  { animation: flyPlane 8s ease-in-out infinite; transform-origin: center; }
.anim-box1   { animation: floatBox 5s ease-in-out infinite; }
.anim-box2   { animation: floatBox 6.5s ease-in-out infinite 1s; }
.anim-box3   { animation: floatBox 4.5s ease-in-out infinite 0.5s; }
.anim-ocean  { animation: shimmerOcean 4s ease-in-out infinite; }

/* ─── Card ──────────────────────────────────────────────────────── */
.auth-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
}
.auth-card {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(4px);
    border-radius: 18px;
    padding: 2.6rem 2.4rem 2rem;
    box-shadow:
        0 32px 80px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.12),
        inset 0 1px 0 rgba(255,255,255,.8);
}

/* ─── Logo / Brand ──────────────────────────────────────────────── */
.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(30,64,175,.25));
}
.brand-sub {
    font-size: .72rem;
    letter-spacing: .5px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

/* ─── Alertas ───────────────────────────────────────────────────── */
.auth-alert {
    border-radius: 10px;
    padding: .65rem 1rem;
    font-size: .83rem;
    border: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.auth-alert.danger  { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }
.auth-alert.success { background: #f0fdf4; color: #166534; border-left: 3px solid #22c55e; }

/* ─── Labels ────────────────────────────────────────────────────── */
.field-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: .4rem;
}

/* ─── Inputs modernos ───────────────────────────────────────────── */
.input-wrap {
    position: relative;
}
.input-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
    pointer-events: none;
    z-index: 2;
}
.auth-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: .5rem 1rem .5rem 2.6rem;
    font-size: .88rem;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.auth-input::placeholder { color: #cbd5e1; font-size: .85rem; }
.auth-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,130,246,.13);
}
.input-wrap.has-toggle .auth-input { padding-right: 2.8rem; }
.toggle-btn {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: .2rem;
    font-size: .85rem;
    line-height: 1;
    z-index: 2;
    transition: color .15s;
}
.toggle-btn:hover { color: #3b82f6; }

/* ─── Botón submit ──────────────────────────────────────────────── */
.btn-signin {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(59,130,246,.4);
}
.btn-signin:hover {
    opacity: .93;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(59,130,246,.5);
}
.btn-signin:active { transform: translateY(0); }

/* ─── Separador / Links ─────────────────────────────────────────── */
.auth-sep {
    display: flex; align-items: center; gap: .65rem;
    margin: 1.2rem 0; color: #cbd5e1; font-size: .75rem;
}
.auth-sep::before, .auth-sep::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.auth-link {
    color: #2563eb; font-weight: 600; text-decoration: none;
    font-size: .83rem; transition: color .15s;
}
.auth-link:hover { color: #1d4ed8; text-decoration: underline; }
