/* =============================================================================
   GEA — Estilos de autenticación (login, password reset)
   Split-screen layout con panel atmosférico izquierdo.
   ============================================================================= */

/* ── Panel izquierdo: gradiente orgánico ── */
.gea-auth-panel {
    background: linear-gradient(145deg, #0f2a1a 0%, #14532d 35%, #166534 65%, #1a3a28 100%);
    position: relative;
    overflow: hidden;
}

.gea-auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(22, 163, 74, 0.06) 0%, transparent 70%);
}

.gea-auth-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 C20 15 10 25 15 35 C20 45 30 40 30 30 C30 40 40 45 45 35 C50 25 40 15 30 5Z' fill='none' stroke='rgba(134,239,172,0.04)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    opacity: 0.6;
}

/* ── Orbes flotantes (profundidad) ── */
.gea-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: gea-float 20s ease-in-out infinite;
}

.gea-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(34, 197, 94, 0.1);
    top: -100px;
    right: -80px;
    animation-delay: 0s;
}

.gea-orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(74, 222, 128, 0.08);
    bottom: -50px;
    left: -60px;
    animation-delay: -7s;
}

.gea-orb-3 {
    width: 150px;
    height: 150px;
    background: rgba(187, 247, 208, 0.06);
    top: 40%;
    left: 30%;
    animation-delay: -13s;
}

@keyframes gea-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ── Animaciones de entrada (stagger) ── */
.gea-fade-up {
    animation: gea-fade-up 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes gea-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.gea-delay-1 { animation-delay: 100ms; }
.gea-delay-2 { animation-delay: 200ms; }
.gea-delay-3 { animation-delay: 300ms; }
.gea-delay-4 { animation-delay: 400ms; }
.gea-delay-5 { animation-delay: 500ms; }

/* ── Input de autenticación ── */
.gea-auth-input {
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(4px);
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    padding-left: 2.75rem;
    font-size: 0.9375rem;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    outline: none;
}

.gea-auth-input:focus {
    background: white;
    border-color: var(--gea-primary-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gea-auth-input.error {
    border-color: #ef4444;
}

.gea-auth-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── Botón submit de auth ── */
.gea-auth-submit {
    background: linear-gradient(135deg, var(--gea-primary-600) 0%, var(--gea-primary-700) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gea-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3), 0 2px 6px rgba(22, 163, 74, 0.2);
}

.gea-auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

/* ── Textura de grano (sutileza visual) ── */
.gea-grain::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 1;
}
