

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f1f5ef;
    color: #263b2e;
    min-height: 100vh;
}

.contenedor-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
/* PANEL VISUAL */

.panel-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #174d35, #28734b 65%, #4a9360);
    color: white;
    padding: 42px 8%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panel-visual::before,
.panel-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    pointer-events: none;
}

.panel-visual::before {
    width: 520px;
    height: 520px;
    right: -180px;
    top: -180px;
}

.panel-visual::after {
    width: 390px;
    height: 390px;
    left: -200px;
    bottom: -170px;
}

/* MARCA */

.marca {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 2;
}

.marca .logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.marca span {
    font-size: 21px;
    font-weight: 650;
}

/* CONTENIDO VISUAL */

.contenido-visual {
    max-width: 510px;
    margin: 25px auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contenido-visual h1 {
    font-size: clamp(29px, 3.2vw, 43px);
    line-height: 1.2;
    margin-bottom: 19px;
    font-weight: 650;
}

.contenido-visual p {
    color: #e0eee3;
    font-size: 16px;
    line-height: 1.8;
    max-width: 470px;
    margin: auto;
}

/* ILUSTRACIÓN BOTÁNICA */

.ilustracion {
    height: 225px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transform: scale(1.08);
}

.sol {
    position: absolute;
    width: 135px;
    height: 135px;
    background: rgba(225, 243, 190, 0.22);
    border-radius: 50%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: respirar 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes respirar {
    0%, 100% {
        transform: translateX(-50%) scale(0.85);
        opacity: 0.35;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.85;
    }
}
.planta {
    position: relative;
    width: 180px;
    height: 190px;
}

.tallo {
    position: absolute;
    width: 7px;
    height: 125px;
    background: #A8DC4A;
    border-radius: 10px;
    left: 87px;
    bottom: 25px;
    z-index: 1;
}

.hoja {
    position: absolute;
    width: 65px;
    height: 35px;
    background: #A8DC4A;
    border-radius: 100% 0 100% 0;
    transform-origin: bottom right;
    z-index: 2;
}

.hoja-izquierda {
    left: 25px;
    top: 75px;
    animation: mover-izquierda 2.8s ease-in-out infinite alternate;
}

.hoja-derecha {
    right: 35px;
    top: 55px;
    animation: mover-derecha 3.2s ease-in-out infinite alternate;
}

@keyframes mover-izquierda {
    from {
        transform: rotate(5deg);
    }
    to {
        transform: rotate(30deg);
    }
}

@keyframes mover-derecha {
    from {
        transform: rotate(65deg) scaleX(-1);
    }
    to {
        transform: rotate(95deg) scaleX(-1);
    }
}

.tierra {
    position: absolute;
    width: 125px;
    height: 18px;
    background: #d5b58a;
    border-radius: 50%;
    bottom: 17px;
    left: 27px;
}

/* ANIMACIONES */
.panel-formulario {
    background: #f8faf7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 55px 30px 25px;
}

.formulario-contenido {
    width: 100%;
    max-width: 440px;
}

.etiqueta {
    color: #4b875b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.formulario-contenido h2 {
    font-size: 34px;
    color: #244b35;
    margin-top: 12px;
    margin-bottom: 9px;
}

.descripcion {
    color: #77847a;
    font-size: 14px;
    margin-bottom: 34px;
}

/* CAMPOS */

.campo {
    margin-bottom: 21px;
}

.campo label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 9px;
    color: #344b3b;
}

.campo input {
    width: 100%;
    height: 51px;
    border: 1px solid #dce5db;
    border-radius: 9px;
    padding: 0 15px;
    font-size: 14px;
    background: white;
    color: #263b2e;
    outline: none;
    transition: 0.25s;
}

.campo input:focus {
    border-color: #4e9160;
    box-shadow: 0 0 0 3px rgba(78,145,96,0.12);
}

.campo input::placeholder {
    color: #a5afa7;
}

/* OPCIONES */

.opciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin: 5px 0 27px;
}

.recordar {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #69786c;
}

.recordar input {
    accent-color: #397b4c;
}

.opciones a,
.registro a {
    color: #397b4c;
    font-weight: 650;
    text-decoration: none;
}

.opciones a:hover,
.registro a:hover {
    text-decoration: underline;
}

/* BOTÓN */

.boton-login {
    width: 100%;
    height: 51px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(100deg, #286b43, #438b55);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(40,107,67,0.18);
    transition: 0.25s;
}

.boton-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 19px rgba(40,107,67,0.25);
}

/* REGISTRO Y PIE */

.separador {
    height: 1px;
    background: #e6ebe5;
    margin: 29px 0 23px;
}

.registro {
    text-align: center;
    font-size: 13px;
    color: #78847a;
}

.volver {
    display: block;
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #738076;
    text-decoration: none;
}

.volver:hover {
    color: #286b43;
}

.panel-formulario footer {
    margin-top: 45px;
    color: #a0aaa2;
    font-size: 11px;
    text-align: center;
}

/* ADAPTACIÓN A CELULARES */

@media (max-width: 850px) {
    .contenedor-login {
        grid-template-columns: 1fr;
    }

    .panel-visual {
        min-height: 410px;
        padding: 28px 7%;
    }

    .contenido-visual {
        margin: 30px auto 15px;
    }

    .ilustracion {
        height: 150px;
        transform: scale(0.75);
        margin: -5px 0;
    }

    .contenido-visual h1 {
        font-size: 27px;
    }

    .panel-formulario {
        padding: 55px 25px 30px;
    }
}

@media (max-width: 480px) {
    .panel-visual {
        min-height: 370px;
    }

    .contenido-visual p {
        font-size: 14px;
    }

    .formulario-contenido h2 {
        font-size: 29px;
    }

    .opciones {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
/* ANIMACIONES AL INTERACTUAR */

.campo input {
    transition: transform 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.campo input:hover {
    transform: scale(1.02);
}

.campo input:focus {
    transform: scale(1.02);
}

.boton-login {
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease;
}

.boton-login:hover {
    transform: scale(1.03);
    box-shadow: 0 9px 20px rgba(40,107,67,0.25);
}
.tallo {
    animation: crecer 1.5s ease-out both;
    transform-origin: bottom;
}

@keyframes crecer {
    from {
        transform: scaleY(0.2);
    }
    to {
        transform: scaleY(1);
    }
}
/* AJUSTES PARA EL FORMULARIO DE REGISTRO */

.panel-formulario:has(#confirmar) {
    padding-top: 30px;
    padding-bottom: 20px;
}

.panel-formulario:has(#confirmar) .descripcion {
    margin-bottom: 20px;
}

.panel-formulario:has(#confirmar) .campo {
    margin-bottom: 13px;
}

.panel-formulario:has(#confirmar) .campo input {
    height: 46px;
}

.panel-formulario:has(#confirmar) .separador {
    margin: 20px 0 16px;
}
.mensaje-error {
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f5c2c0;
    padding: 12px 15px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 14px;
}

.mensaje-exito {
    background: #e8f5ec;
    color: #216e3a;
    border: 1px solid #b7dfc2;
    padding: 12px 15px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 14px;
}