@import url("variables.css");

body {
      background-color: rgb(214, 214, 207);
      font-family: var(--font-primary);
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
    }

    .auth {
      display: flex;
      width: 35em;
      max-width: 100%;
      height: 28.5em;
      background: rgba(255, 255, 255, 0.50);
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      border-radius: 10px;
      overflow: hidden;
    }

    /* Panel izquierdo con el flip */
    .panel {
      position: relative;
      width: 70em;
      height: 28.5em;
      perspective: 1000px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .form-card {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.8s ease-in-out;
    }

    .form-card.flipped {
      transform: rotateY(180deg);
    }

    .form-wrap {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      padding: 40px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    #login-wrap { transform: rotateY(0deg); }
    #signup-wrap { transform: rotateY(180deg); }

    .field input {
      width: 100%;
      max-width: 230px;
      padding: 12px;
      margin-bottom: 12px;
      border: 1px solid #ddd;
      border-radius: 5px;
    }

    .btn {
      display: inline-block;
      width: 100%;
      padding: 12px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 10px;
    }
    .btn.primary { background: var(--color-terciario); color: white; font-weight: bold; }
    .btn.switch { background: transparent; border: 2px solid var(--color-terciario); color: var(--color-terciario); }

    /* Panel derecho fijo para branding */
    .overlay {
      width: 35em;
      background-color: #082344;
      color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px;
      box-sizing: border-box;
      text-align: center;
    }
    
    .overlay img { width: 100px;; margin-bottom: 20px; height: 100px;   object-fit: cover; }
    .overlay h1 { font-size: 24px; margin: 0 0 10px 0; }
    .overlay p { font-size: 14px; opacity: 0.9; }

    /* Link recuperar contraseña */
    .link-pass {
      font-size: 0.8em;
      font-weight: bold;
      text-decoration: none;
      color: var(--color-terciario);
      text-align: center;
      margin-top: 10px;
      display: block;
    }
    .link-pass:hover { text-decoration: underline; }

    /* Toast */
    .toast {
      position: fixed;
      top: 20px;
      right: 20px;
      background: rgba(0, 0, 0, 0.85);
      color: #fff;
      padding: 12px 20px;
      border-radius: 6px;
      font-size: 14px;
      opacity: 0;
      transform: translateY(-20px);
      transition: all 0.4s ease;
      z-index: 9999;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    } 