/* ============================================================
   landing.css
   Estilos de la página publica de entrada, que renderiza React.
   Portados del bloque <style> que vivia dentro de index.jsp.
   Comparte el lenguaje visual (orbes, marca en la esquina) con
   login.css, que es la otra pantalla publica.
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d50 30%, #2a4a7f 60%, #3b6cb5 100%);
    overflow: hidden;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 108, 181, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 149, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes bgShift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 5%) rotate(3deg); }
}

/* Floating orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4a7ec7, transparent);
    top: -100px;
    right: -100px;
    animation: floatOrb1 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #2a5298, transparent);
    bottom: -80px;
    left: -80px;
    animation: floatOrb2 18s ease-in-out infinite;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #6495ed, transparent);
    top: 50%;
    left: 60%;
    animation: floatOrb3 12s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-40px, 40px); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(30px, -30px); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-20px, 20px) scale(1.1); }
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass card */
.card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Logo */
.logo-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 2px;
}

.logo-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(59, 108, 181, 0.4));
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 4px 20px rgba(59, 108, 181, 0.4)); }
    50%      { filter: drop-shadow(0 4px 30px rgba(100, 149, 237, 0.6)); }
}

/* Text */
.title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.2rem;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #4a7ec7 0%, #3b6cb5 50%, #2a5298 100%);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 16px rgba(42, 82, 152, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(42, 82, 152, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #5a8ed7 0%, #4a7ec7 50%, #3b6cb5 100%);
}

.cta-btn:active {
    transform: translateY(-1px);
}

.cta-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(4px);
}

/* Marca en la esquina (watermark) */
.brand-corner {
    position: fixed;
    left: 28px;
    bottom: 24px;
    z-index: 2;
    display: inline-block;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    pointer-events: none;
}

.brand-corner img {
    display: block;
    width: 100px;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

@media (max-width: 480px) {
    .brand-corner {
        left: 16px;
        bottom: 14px;
    }
    .brand-corner img {
        width: 80px;
    }
}

/* Footer note */
.footer-note {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    font-weight: 300;
}

.footer-note a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-note a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 2.2rem 1.8rem;
        border-radius: 22px;
    }

    .logo-img {
        width: 130px;
        height: 130px;
    }

    .title {
        font-size: 1.3rem;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 0.92rem;
        width: 100%;
        justify-content: center;
    }
}
