
    * {
      box-sizing: border-box;
    }

    .cerrar_sesion {
      background: #5cb85c;
      color: #FFFFFF;
    }

    html, body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo {
      width: 200px;
      height: auto;
    }

    .login-body {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
    }

    .container {
      border-radius: 20px;
      box-shadow: 0 14px 28px rgba(0,0,0,0.2),
                  0 10px 10px rgba(0,0,0,0.2);
      position: relative;
      overflow: hidden;
      width: 95%;
      max-width: 850px;
      min-height: 500px;
      transition: transform 0.6s ease-in-out;
    }

    .form-container {
      position: absolute;
      top: 0;
      height: 100%;
      transition: all 0.6s ease-in-out;
    }

    .sign-in-container {
      left: 0;
      width: 50%;
      z-index: 2;
      opacity: 1;
      transition: all 0.6s ease-in-out;
    }

    .sign-up-container {
      left: 50%;
      width: 50%;
      opacity: 0;
      z-index: 1;
      transition: all 0.6s ease-in-out;
    }

    .container.right-panel-active .sign-in-container {
      transform: translateX(-0%);
      opacity: 0;
      z-index: 1;
    }

    .container.right-panel-active .sign-up-container {
      transform: translateX(-0%);
      opacity: 1;
      z-index: 5;
    }

    form {
      background: rgba(255, 255, 255, 0.2);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
      display: flex;
      flex-direction: column;
      padding: 0 50px;
      height: 100%;
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    input {
      background-color: #F0F0F0;
      border: none;
      padding: 12px 15px;
      margin: 8px 0;
      width: 100%;
      border-radius: 10px;
    }

    button {
      border-radius: 20px;
      border: 1px solid #5cb85c;
      background-color: #5cb85c;
      color: #FFFFFF;
      font-size: 14px;
      padding: 12px 45px;
      margin-top: 20px;
      transition: transform 80ms ease-in;
      cursor: pointer;
    }

    button.ghost {
      background-color: #ffffff;
      border: 2px solid #ffffff;
      color: #5cb85c;
    }

    button.ghost:hover {
      background-color: #ffffff;
      color: #5cb85c;
    }

    .overlay-container {
      position: absolute;
      top: 0;
      left: 50%;
      width: 50%;
      height: 100%;
      overflow: hidden;
      transition: transform 0.6s ease-in-out;
      z-index: 100;
    }

    .overlay {
      background: #5cb85c;
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      color: #000000;
      position: relative;
      left: -100%;
      height: 100%;
      width: 200%;
      transform: translateX(0);
      transition: transform 0.6s ease-in-out;
    }

    .container.right-panel-active .overlay-container {
      transform: translateX(-100%);
    }

    .container.right-panel-active .overlay {
      transform: translateX(50%);
    }

    .overlay-panel {
      position: absolute;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0 40px;
      text-align: center;
      top: 0;
      height: 100%;
      width: 50%;
      transform: translateX(0);
      transition: transform 0.6s ease-in-out;
    }

    .overlay-left {
      transform: translateX(-20%);
    }

    .overlay-right {
      right: 0;
      transform: translateX(0);
    }

    .container.right-panel-active .overlay-left {
      transform: translateX(0);
    }

    .container.right-panel-active .overlay-right {
      transform: translateX(20%);
    }

    .links {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
      font-size: 14px;
    }

    .links a {
      color: #5cb85c;
      text-decoration: none;
      font-weight: bold;
    }

    .round-nav-btn {
      position: absolute;
      bottom: 20px;
      width: 35px;
      height: 35px;
      border-radius: 17px;
      border: none;
      background-color: #5cb85c;
      color: #ffffff;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      transition: all 0.2s ease;
      cursor: pointer;
      z-index: 200;
      backdrop-filter: none;
    }

    .round-nav-btn:hover {
      background-color: #4cae4c;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-left {
      left: 20px;
    }

    .nav-right {
      right: 75%;
    }

    .password-container {
      position: relative;
      width: 100%;
    }

    .password-container input {
      padding-right: 40px;
    }

    .toggle-pass {
      position: absolute;
      top: 50%;
      right: 12px;
      transform: translateY(-50%);
      cursor: pointer;
      font-size: 18px;
      color: #555;
    }

    .toast {
      position: fixed;
      top: 30px;
      right: 30px;
      padding: 25px 30px;
      font-size: 26px;
      border-radius: 8px;
      color: white;
      z-index: 9999;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      display: flex;
      align-items: center;
      animation: slideDown 0.5s ease;
    }

    .toast.success { background-color: #28a745; }
    .toast.error { background-color: #3700ff; }

    .cerrar-alerta {
      margin-left: 20px;
      font-size: 20px;
      cursor: pointer;
    }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-10px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .modal-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: flex; align-items: center; justify-content: center;
      z-index: 10000;
    }

    .modal {
      background: white;
      padding: 30px;
      border-radius: 12px;
      width: 400px;
      max-width: 90%;
      text-align: center;
      box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }

    .modal h2 {
      color: #5cb85c;
    }

    .modal p {
      margin-top: 10px;
      font-size: 16px;
    }

    .modal input[type="text"] {
      padding: 10px;
      width: 80%;
      margin: 10px 0;
    }

    .modal button {
      padding: 10px 20px;
      background: #5cb85c;
      border: none;
      color: white;
      border-radius: 5px;
      cursor: pointer;
    }

    .modal .intentos {
      color: red;
      margin-top: 10px;
      font-weight: bold;
    }
    
    .mobile-toggle {
      display: none;
    }

    .back-btn-mobile {
      display: none;
    }

    /* MEDIA QUERIES PARA MÓVIL */
    @media (max-width: 768px) {
      .back-btn-mobile {
  display: flex;
  position: absolute;
  top: 15px;
  left: 15px;
  width: auto;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
  color: white;
  border: none;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(92, 184, 92, 0.4);
  transition: all 0.3s ease;
}

.back-btn-mobile i {
  font-size: 18px;
}

.back-btn-mobile:hover {
  background: linear-gradient(135deg, #4cae4c 0%, #3f8b3f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(92, 184, 92, 0.5);
}

.back-btn-mobile:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(92, 184, 92, 0.3);
}

      
      .container {
        width: 90%;
        max-width: 400px;
        height: auto;
        min-height: 550px;
        perspective: 1000px;
        position: relative;
        margin: 20px auto;
      }

      .flip-box-inner {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 550px;
        transform-style: preserve-3d;
        transition: transform 0.8s ease-in-out;
      }

      .container.show-register .flip-box-inner {
        transform: rotateY(180deg);
      }

      .form-container {
        position: absolute;
        width: 100%;
        height: 100%;
        min-height: 550px;
        backface-visibility: hidden;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.8);
      }

      .sign-in-container {
        transform: rotateY(0deg);
        z-index: 2;
        left: 0;
        width: 100%;
        opacity: 1;
      }

      .sign-up-container {
        transform: rotateY(180deg);
        z-index: 1;
        left: 0;
        width: 100%;
        opacity: 1;
      }

      .overlay-container,
      .overlay,
      .round-nav-btn {
        display: none !important;
      }

      .mobile-toggle {
        display: block;
        margin-top: 20px;
        font-size: 14px;
        color: #5cb85c;
        text-align: center;
      }

      .mobile-toggle a {
        font-weight: bold;
        color: #5cb85c;
        text-decoration: underline;
        cursor: pointer;
      }

      form {
        padding: 40px 30px;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        width: 100%;
        height: 100%;
        min-height: 550px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
      }

      input {
        background-color: rgba(240, 240, 240, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 15px;
        margin: 10px 0;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      button {
        padding: 15px 40px;
        margin-top: 25px;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
        transition: all 0.3s ease;
      }

      button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(92, 184, 92, 0.4);
      }

      h1 {
        color: #333;
        margin-bottom: 30px;
        font-size: 28px;
        font-weight: 700;
      }
    }
 