:root {
    --verde-oscuro: #0B3D2E;
    --verde-medio: #2E7D32;
    --verde-brillante: #4CAF50;
    --verde-claro: #A5D6A7;
    --blanco: #FFFFFF;
    --fondo: #F3FAF5;
    --texto: #17231D;
    --gris: #66736B;
}


/* ================================
   RESET
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    overflow: hidden;
    color: var(--texto);
}


/* ================================
   FONDO
================================ */

.background {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(76, 175, 80, 0.18),
            transparent 30%
        ),

        radial-gradient(
            circle at 80% 80%,
            rgba(165, 214, 167, 0.25),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #F7FCF8,
            #EDF8F0
        );

    z-index: -2;
}


/* círculos decorativos */

.background::before,
.background::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    filter: blur(5px);

    opacity: .35;
}

.background::before {
    width: 350px;
    height: 350px;

    background: var(--verde-claro);

    top: -180px;
    left: -120px;
}

.background::after {
    width: 400px;
    height: 400px;

    background: #C8E6C9;

    bottom: -220px;
    right: -150px;
}


/* ================================
   LOADER
================================ */

.loader-screen {
    position: fixed;

    inset: 0;

    background: var(--blanco);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999;

    transition:
        opacity .7s ease,
        visibility .7s ease;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}


.loader-content {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 18px;
}


.loader-logo {
    width: 120px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: floating 2s ease-in-out infinite;
}


.loader-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.loader-spinner {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    border: 3px solid #DDEDE0;

    border-top-color: var(--verde-brillante);

    animation: spin .9s linear infinite;
}


.loader-content p {
    color: var(--gris);

    font-size: 12px;

    animation: fadeText 1.5s ease-in-out infinite;
}


/* ================================
   PANTALLA PRINCIPAL
================================ */

.welcome-screen {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;

    animation: showScreen .8s ease forwards;

    animation-delay: .3s;
}


.welcome-card {
    width: 100%;
    max-width: 470px;

    padding: 42px 40px 30px;

    text-align: center;

    background: rgba(255, 255, 255, .86);

    border: 1px solid rgba(255, 255, 255, .9);

    border-radius: 30px;

    box-shadow:
        0 25px 70px rgba(11, 61, 46, .10);

    backdrop-filter: blur(20px);
}


/* ================================
   LOGO
================================ */

.logo-container {
    position: relative;

    width: 165px;
    height: 165px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.main-logo {
    position: relative;

    width: 145px;
    height: 145px;

    object-fit: contain;

    z-index: 2;

    animation: floating 3s ease-in-out infinite;
}


.logo-glow {
    position: absolute;

    width: 135px;
    height: 135px;

    border-radius: 50%;

    background: rgba(76, 175, 80, .12);

    filter: blur(18px);

    animation: glow 2.5s ease-in-out infinite;
}


/* ================================
   TITULO
================================ */

.title-container h1 {
    color: var(--verde-oscuro);

    font-size: 42px;

    font-weight: 700;

    letter-spacing: -.8px;
}


.subtitle {
    margin-top: 5px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color: var(--verde-medio);

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.subtitle span {
    width: 25px;
    height: 1px;

    background: var(--verde-claro);
}


/* ================================
   DESCRIPCIÓN
================================ */

.description {
    max-width: 350px;

    margin: 20px auto 28px;

    color: var(--gris);

    font-size: 13px;

    line-height: 1.7;
}


/* ================================
   BOTONES
================================ */

.buttons {
    display: flex;

    flex-direction: column;

    gap: 11px;
}


.btn {
    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 14px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: .3s ease;

    cursor: pointer;
}


/* Iniciar sesión */

.btn-login {
    background: var(--verde-oscuro);

    color: white;

    box-shadow:
        0 8px 20px rgba(11, 61, 46, .15);
}


.btn-login:hover {
    transform: translateY(-2px);

    background: #092F24;

    box-shadow:
        0 12px 25px rgba(11, 61, 46, .22);
}


/* Registro */

.btn-register {
    background: white;

    color: var(--verde-medio);

    border: 1px solid #CFE4D4;
}


.btn-register:hover {
    transform: translateY(-2px);

    background: #F3FBF5;

    border-color: var(--verde-claro);
}


/* Comenzar */

.btn-start {
    background:
        linear-gradient(
            135deg,
            var(--verde-medio),
            var(--verde-brillante)
        );

    color: white;

    box-shadow:
        0 10px 25px rgba(76, 175, 80, .22);
}


.btn-start:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(76, 175, 80, .30);
}


.btn:active {
    transform: scale(.98);
}


/* ================================
   FOOTER
================================ */

.footer-text {
    margin-top: 25px;

    color: #9AA79F;

    font-size: 9px;
}


/* ================================
   ANIMACIONES
================================ */

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }

}


@keyframes glow {

    0%,
    100% {
        transform: scale(.95);

        opacity: .5;
    }

    50% {
        transform: scale(1.1);

        opacity: 1;
    }

}


@keyframes fadeText {

    0%,
    100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }

}


@keyframes showScreen {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 600px) {

    .welcome-card {
        padding: 32px 24px 25px;

        border-radius: 24px;
    }

    .logo-container {
        width: 140px;
        height: 140px;
    }

    .main-logo {
        width: 125px;
        height: 125px;
    }

    .title-container h1 {
        font-size: 35px;
    }

    .description {
        font-size: 12px;
    }

}