 :root {
      --verde-oscuro: #174f2a;
      --verde-profundo: #103d22;
      --verde-medio: #2d7b3f;
      --verde-claro: #79bd43;
      --verde-hoja: #4da83b;

      --amarillo-banano: #f2c94c;

      --cafe: #7a4828;
      --cafe-claro: #a96b3c;

      --crema: #f7f3e8;
      --blanco: #ffffff;

      --texto: #24342a;
      --texto-suave: #6b796f;

      --borde: rgba(23, 79, 42, 0.16);

      --sombra:
        0 30px 80px rgba(15, 55, 29, 0.22);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;

      display: flex;
      justify-content: center;
      align-items: center;

      padding: 25px;

      font-family:
        Arial,
        Helvetica,
        sans-serif;

      color: var(--texto);

      background:
        radial-gradient(
          circle at 12% 18%,
          rgba(242, 201, 76, 0.28),
          transparent 27%
        ),
        radial-gradient(
          circle at 86% 14%,
          rgba(121, 189, 67, 0.29),
          transparent 30%
        ),
        radial-gradient(
          circle at 82% 88%,
          rgba(169, 107, 60, 0.20),
          transparent 29%
        ),
        linear-gradient(
          135deg,
          #f5f8ec 0%,
          #dcebcf 48%,
          #f6ead9 100%
        );

      overflow-x: hidden;
    }

    button,
    input,
    select {
      font: inherit;
    }

    /* Decoración del fondo */

    .background-shape {
      position: fixed;
      pointer-events: none;
      z-index: 0;
    }

    .shape-left {
      left: -170px;
      bottom: -220px;

      width: 560px;
      height: 560px;

      border-radius:
        48% 52% 64% 36% /
        58% 38% 62% 42%;

      background:
        linear-gradient(
          145deg,
          rgba(23, 79, 42, 0.94),
          rgba(45, 123, 63, 0.80)
        );

      transform: rotate(18deg);
    }

    .shape-right {
      right: -220px;
      top: -260px;

      width: 610px;
      height: 610px;

      border-radius:
        40% 60% 45% 55% /
        55% 45% 55% 45%;

      background:
        linear-gradient(
          145deg,
          rgba(242, 201, 76, 0.60),
          rgba(121, 189, 67, 0.48)
        );

      transform: rotate(-20deg);
    }

    .leaf {
      position: fixed;

      width: 240px;
      height: 115px;

      border-radius: 100% 0 100% 0;

      background:
        rgba(23, 79, 42, 0.11);

      pointer-events: none;
      z-index: 0;
    }

    .leaf-one {
      top: 11%;
      left: 6%;
      transform: rotate(-25deg);
    }

    .leaf-two {
      right: 6%;
      bottom: 9%;
      transform: rotate(155deg);
    }

    /* Contenedor principal */

    .login-card {
      position: relative;
      z-index: 1;

      width: min(460px, 100%);

      padding: 42px 42px 36px;

      border:
        1px solid rgba(255, 255, 255, 0.72);

      border-radius: 30px;

      background:
        linear-gradient(
          145deg,
          rgba(255, 255, 255, 0.96),
          rgba(247, 243, 232, 0.91)
        );

      box-shadow: var(--sombra);

      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .login-card::before {
      content: "";

      position: absolute;
      top: 0;
      left: 50%;

      width: 120px;
      height: 5px;

      border-radius: 0 0 10px 10px;

      transform: translateX(-50%);

      background:
        linear-gradient(
          90deg,
          var(--verde-medio),
          var(--amarillo-banano)
        );
    }

    /* Logo */

    .logo {
      display: flex;
      align-items: center;
      justify-content: center;

      gap: 15px;

      margin-bottom: 25px;

      user-select: none;
    }

    .logo-symbol {
      position: relative;

      width: 105px;
      height: 105px;

      flex-shrink: 0;
    }

    .logo-symbol svg {
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .sun-circle {
      fill: var(--amarillo-banano);
      opacity: 0.22;

      transform-origin: center;

      animation:
        sunPulse 4s ease-in-out infinite;
    }

    .soil {
      fill: var(--cafe);
    }

    .soil-light {
      fill: var(--cafe-claro);
      opacity: 0.75;
    }

    .stem {
      fill: none;

      stroke: var(--verde-oscuro);
      stroke-width: 12;
      stroke-linecap: round;

      stroke-dasharray: 180;
      stroke-dashoffset: 180;

      animation:
        growStem 1.5s ease-out forwards;
    }

    .plant-leaf {
      transform-box: fill-box;
      transform-origin: bottom center;
    }

    .plant-leaf-left {
      fill: var(--verde-claro);

      animation:
        openLeafLeft 1.2s ease-out 0.8s both;
    }

    .plant-leaf-right {
      fill: var(--verde-hoja);

      animation:
        openLeafRight 1.2s ease-out 1s both;
    }

    .plant-leaf-center {
      fill: var(--verde-medio);

      animation:
        openCenterLeaf 1.2s ease-out 1.15s both;
    }

    .leaf-line {
      fill: none;

      stroke: rgba(255, 255, 255, 0.72);
      stroke-width: 3;
      stroke-linecap: round;
    }

    .coffee-bean {
      fill: #8a5030;

      stroke: #5f321e;
      stroke-width: 3;

      transform-box: fill-box;
      transform-origin: center;

      animation:
        beanFloat 3s ease-in-out infinite;
    }

    .coffee-line {
      fill: none;

      stroke: #f2c9a7;
      stroke-width: 3;
      stroke-linecap: round;
    }

    .banana-shape {
      fill: var(--amarillo-banano);

      stroke: #ca9a20;
      stroke-width: 3;

      transform-box: fill-box;
      transform-origin: center;

      animation:
        bananaFloat 3s ease-in-out 0.5s infinite;
    }

    #spark-delayed { animation-delay: 0.8s; }

    .spark {
      fill: var(--amarillo-banano);

      transform-origin: center;

      animation:
        sparkle 2.8s ease-in-out infinite;
    }

    .brand-content {
      text-align: left;
    }

    .brand-name {
      margin: 0;

      color: var(--verde-oscuro);

      font-size: 46px;
      font-weight: 900;
      line-height: 0.9;
      letter-spacing: -3px;

      text-transform: uppercase;
    }

    .brand-name .letter-a {
      color: var(--verde-medio);
    }

    .brand-name .star {
      display: inline-block;

      margin-left: 2px;

      color: var(--amarillo-banano);

      font-size: 0.34em;
      vertical-align: top;

      transform: translateY(-6px);

      animation:
        starRotation 6s linear infinite;
    }

    .tagline {
      margin: 10px 0 0;

      color: var(--cafe);

      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2.3px;

      text-transform: uppercase;
    }

    /* Encabezado */

    .form-heading {
      margin-bottom: 27px;
      text-align: center;
    }

    .form-heading h1 {
      margin: 0 0 8px;

      color: var(--verde-profundo);

      font-size: 27px;
      letter-spacing: -0.7px;
    }

    .form-heading p {
      margin: 0;

      color: var(--texto-suave);

      font-size: 14px;
      line-height: 1.5;
    }

    /* Formulario */

    .form-group {
      margin-bottom: 18px;
    }

    .form-group label {
      display: block;

      margin-bottom: 8px;

      color: #344b3a;

      font-size: 13px;
      font-weight: 700;
    }

    .input-wrapper {
      position: relative;
    }

    .input-icon {
      position: absolute;

      left: 16px;
      top: 50%;

      width: 19px;
      height: 19px;

      transform: translateY(-50%);

      color: var(--verde-medio);

      pointer-events: none;
    }

    .input-icon svg {
      width: 100%;
      height: 100%;

      fill: none;

      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .form-control {
      width: 100%;
      height: 52px;

      padding:
        0 48px
        0 48px;

      border:
        1px solid var(--borde);

      border-radius: 14px;

      outline: none;

      color: var(--texto);

      background:
        rgba(255, 255, 255, 0.87);

      transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
    }

    .form-control::placeholder {
      color: #9ca8a0;
    }

    .form-control:focus {
      border-color: var(--verde-medio);

      box-shadow:
        0 0 0 4px rgba(45, 123, 63, 0.12);

      transform: translateY(-1px);
    }

    select.form-control {
      cursor: pointer;

      appearance: none;
      -webkit-appearance: none;

      background-image:
        linear-gradient(
          45deg,
          transparent 50%,
          var(--verde-oscuro) 50%
        ),
        linear-gradient(
          135deg,
          var(--verde-oscuro) 50%,
          transparent 50%
        );

      background-position:
        calc(100% - 21px) 22px,
        calc(100% - 16px) 22px;

      background-size:
        5px 5px,
        5px 5px;

      background-repeat: no-repeat;
    }

    /* Botón de contraseña */

    .password-button {
      position: absolute;

      right: 9px;
      top: 50%;

      width: 38px;
      height: 38px;

      display: flex;
      justify-content: center;
      align-items: center;

      transform: translateY(-50%);

      border: none;
      border-radius: 10px;

      color: var(--verde-oscuro);
      background: transparent;

      cursor: pointer;

      transition:
        background 0.2s ease,
        color 0.2s ease;
    }

    .password-button:hover {
      color: var(--verde-medio);

      background:
        rgba(45, 123, 63, 0.09);
    }

    .password-button svg {
      width: 20px;
      height: 20px;

      fill: none;

      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .hidden {
      display: none;
    }

    /* Opciones */

    .login-options {
      display: flex;
      justify-content: space-between;
      align-items: center;

      gap: 12px;

      margin:
        3px 0
        24px;
    }

    .remember-option {
      display: flex;
      align-items: center;

      gap: 8px;

      color: var(--texto-suave);

      font-size: 13px;
      cursor: pointer;
    }

    .remember-option input {
      width: 16px;
      height: 16px;

      accent-color: var(--verde-medio);
    }

    .forgot-link {
      color: var(--verde-medio);

      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
    }

    .forgot-link:hover {
      text-decoration: underline;
    }

    /* Botón de ingreso */

    .login-button {
      width: 100%;
      min-height: 53px;

      display: flex;
      justify-content: center;
      align-items: center;

      gap: 10px;

      border: none;
      border-radius: 14px;

      color: var(--blanco);

      background:
        linear-gradient(
          135deg,
          var(--verde-oscuro),
          var(--verde-medio)
        );

      box-shadow:
        0 16px 30px rgba(23, 79, 42, 0.24);

      font-weight: 700;
      cursor: pointer;

      transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
    }

    .login-button:hover {
      transform: translateY(-3px);

      box-shadow:
        0 20px 36px rgba(23, 79, 42, 0.31);

      filter: brightness(1.04);
    }

    .login-button:active {
      transform: translateY(0);
    }

    .login-button:disabled {
      cursor: not-allowed;
      opacity: 0.75;
      transform: none;
    }

    .login-button svg {
      width: 18px;
      height: 18px;

      fill: none;

      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* Mensajes */

    .message {
      display: none;

      margin-bottom: 18px;
      padding: 12px 14px;

      border-radius: 12px;

      font-size: 13px;
      line-height: 1.45;
    }

    .message.error {
      display: block;

      border:
        1px solid rgba(180, 45, 45, 0.20);

      color: #8d2626;

      background:
        rgba(255, 225, 225, 0.76);
    }

    .message.success {
      display: block;

      border:
        1px solid rgba(45, 123, 63, 0.20);

      color: var(--verde-oscuro);

      background:
        rgba(224, 244, 218, 0.84);
    }

    .footer-text {
      margin-top: 24px;

      color: #89958d;

      font-size: 11px;
      text-align: center;
    }

    /* Animaciones */

    @keyframes growStem {
      to {
        stroke-dashoffset: 0;
      }
    }

    @keyframes openLeafLeft {
      from {
        transform:
          rotate(50deg)
          scale(0);

        opacity: 0;
      }

      to {
        transform:
          rotate(0)
          scale(1);

        opacity: 1;
      }
    }

    @keyframes openLeafRight {
      from {
        transform:
          rotate(-50deg)
          scale(0);

        opacity: 0;
      }

      to {
        transform:
          rotate(0)
          scale(1);

        opacity: 1;
      }
    }

    @keyframes openCenterLeaf {
      from {
        transform:
          translateY(18px)
          scale(0);

        opacity: 0;
      }

      to {
        transform:
          translateY(0)
          scale(1);

        opacity: 1;
      }
    }

    @keyframes sunPulse {
      0%,
      100% {
        transform: scale(1);
        opacity: 0.18;
      }

      50% {
        transform: scale(1.08);
        opacity: 0.3;
      }
    }

    @keyframes beanFloat {
      0%,
      100% {
        transform:
          translateY(0)
          rotate(-15deg);
      }

      50% {
        transform:
          translateY(-5px)
          rotate(-10deg);
      }
    }

    @keyframes bananaFloat {
      0%,
      100% {
        transform:
          translateY(0)
          rotate(5deg);
      }

      50% {
        transform:
          translateY(-6px)
          rotate(9deg);
      }
    }

    @keyframes sparkle {
      0%,
      100% {
        transform:
          scale(0.8)
          rotate(0deg);

        opacity: 0.35;
      }

      50% {
        transform:
          scale(1.15)
          rotate(45deg);

        opacity: 1;
      }
    }

    @keyframes starRotation {
      from {
        transform:
          translateY(-6px)
          rotate(0deg);
      }

      to {
        transform:
          translateY(-6px)
          rotate(360deg);
      }
    }

    /* Diseño adaptable */

    @media (max-width: 560px) {
      body {
        padding: 14px;
      }

      .login-card {
        padding:
          36px 22px
          30px;

        border-radius: 24px;
      }

      .logo {
        gap: 9px;
      }

      .logo-symbol {
        width: 82px;
        height: 82px;
      }

      .brand-name {
        font-size: 37px;
      }

      .tagline {
        font-size: 8px;
        letter-spacing: 1.7px;
      }

      .form-heading h1 {
        font-size: 24px;
      }

      .login-options {
        align-items: flex-start;
        flex-direction: column;
      }

      .shape-left {
        opacity: 0.76;
      }

      .leaf {
        display: none;
      }
    }
