
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background-image: url('background-sso.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 16px;
    }

    /* Kontainer utama yang membungkus semuanya */
    .container {
        background: white;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        position: relative;
        overflow: hidden; /* Penting untuk menyembunyikan bagian yang bergeser */
        width: 100%;
        max-width: 900px;
        min-height: 580px;
    }

    /* Kontainer untuk form (Registrasi & Login) */
    .form-container {
        position: absolute;
        top: 0;
        height: 100%;
        transition: all 0.6s ease-in-out;
    }

    .sign-in-container {
        left: 50%;
        width: 50%;
        z-index: 2;
    }

    .sign-up-container {
        left: 50%;
        width: 50%;
        opacity: 0;
        z-index: 1;
    }

    /* Form di dalam kontainer */
    form {
      background: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 48px;
      height: 100%;
      text-align: center;
    }

    form h2 {
      font-weight: 800;
      font-size: 1.5rem;
      color: #3a3a3a;
      margin: 0 0 32px 0;
    }

    .input-group {
      position: relative;
      margin-bottom: 16px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
      width: 100%;
      padding: 10px 12px 10px 38px;
      border-radius: 8px;
      border: none;
      background-color: #f3f3f3;
      color: #9ca3af;
      font-size: 0.875rem;
      outline: none;
      transition: box-shadow 0.3s;
    }

    input::placeholder { color: #b0b0b0; }
    input:focus {
      box-shadow: 0 0 0 2px #5f8de1;
      color: #3a3a3a;
    }

    .input-group i {
      position: absolute;
      top: 50%;
      left: 12px;
      transform: translateY(-50%);
      color: #b0b0b0;
      font-size: 1rem;
      pointer-events: none;
    }

    .forgot-password {
      font-size: 0.75rem;
      color: #9ca3af;
      text-align: right;
      cursor: pointer;
      user-select: none;
      margin-top: -8px;
      margin-bottom: 16px;
      transition: color 0.3s;
    }
    .forgot-password:hover { color: #5f8de1; }

    .btn-submit {
      background-color: #5f8de1;
      border: none;
      color: white;
      font-weight: 700;
      font-size: 1rem;
      padding: 12px 0;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s;
      width: 100%;
      margin-top: 8px;
    }
    .btn-submit:hover { background-color: #4a6fc1; }

    .social-text {
      font-size: 0.75rem;
      color: #9ca3af;
      text-align: center;
      margin: 24px 0 12px 0;
    }

    .social-icons {
      display: flex;
      justify-content: center;
      gap: 12px;
    }

    .social-icons a {
      border: 1.5px solid #d1d5db;
      background: white;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      color: #3a3a3a;
      text-decoration: none;
      font-size: 1.1rem;
    }
    .social-icons a:hover { background-color: #f3f4f6; }

    /* Overlay dan Panel Animasi (HANYA DESKTOP) */
    .overlay-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        overflow: hidden;
        transition: transform 0.6s ease-in-out, border-radius 0.6s ease-in-out;
        z-index: 100;
        border-radius: 0 100px 100px 0;
    }

    .overlay {
        background: #5f8de1;
        color: #FFFFFF;
        position: relative;
        left: 0;
        height: 100%;
        width: 200%;
        transform: translateX(0);
        transition: transform 0.6s ease-in-out;
    }

    .overlay-panel {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        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(0);
    }

    .overlay-right {
        right: 0;
        transform: translateX(20%);
    }

    .overlay-panel h1 {
      font-weight: 800;
      font-size: 2rem;
      margin: 0 0 8px 0;
    }

    .overlay-panel p {
      font-size: 0.75rem;
      margin: 0 0 24px 0;
      font-weight: 400;
      line-height: 1.5;
    }

    .btn-panel {
      border: 1.5px solid white;
      background: transparent;
      color: white;
      font-weight: 700;
      font-size: 0.875rem;
      padding: 8px 24px;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s, color 0.3s;
      width: fit-content;
    }
    .btn-panel:hover {
      background-color: white;
      color: #5f8de1;
    }

    /* --- LOGIKA ANIMASI AKTIF (HANYA DESKTOP) --- */
    .container.right-panel-active .sign-in-container {
        transform: translateX(-100%);
    }
    .container.right-panel-active .sign-up-container {
        transform: translateX(-100%);
        opacity: 1;
        z-index: 5;
        animation: show 0.6s;
    }
    .container.right-panel-active .overlay-container {
        transform: translateX(100%);
        border-radius: 100px 0 0 100px;
    }
    .container.right-panel-active .overlay {
        transform: translateX(-50%);
    }
    .container.right-panel-active .overlay-left {
        transform: translateX(-20%);
    }
    .container.right-panel-active .overlay-right {
        transform: translateX(0);
    }

    @keyframes show {
        0%, 49.99% { opacity: 0; z-index: 1; }
        50%, 100% { opacity: 1; z-index: 5; }
    }

    /* --- PERBAIKAN TOTAL UNTUK MOBILE --- */
    @media (max-width: 768px) {
      body {
        padding: 0;
      }
      .container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
      }

      .form-container {
        width: 100%;
        left: 0;
        transition: transform 0.6s ease-in-out;
      }
      .sign-in-container {
        top: 35%;
        height: 65%;
      }
      .sign-up-container {
        top: 0;
        height: 65%; /* PERBAIKAN: Menetapkan tinggi agar tidak tumpang tindih */
        transform: translateY(-100%);
        opacity: 1;
      }

      .overlay-container {
        width: 100%;
        height: 35%;
        left: 0;
        top: 0;
        border-radius: 0 0 100px 100px;
        transition: transform 0.6s ease-in-out, border-radius 0.6s ease-in-out;
      }
      .overlay {
        width: 100%;
        height: 200%;
        left: 0;
        transform: translateY(0);
      }
      .overlay-panel {
        width: 100%;
        height: 50%;
        transform: none;
        padding: 0 24px;
      }
      .overlay-left {
        top: 0;
        transform: translateY(-15%);
      }
      .overlay-right {
        top: 50%;
        transform: translateY(0);
      }

      form {
        padding: 24px;
        height: 100%;
        justify-content: center;
        background: white;
        position: relative;
        overflow-y: auto;
      }

      /* Logika animasi mobile saat panel aktif */
      .container.right-panel-active .sign-in-container {
        transform: translateY(100%);
      }
      .container.right-panel-active .sign-up-container {
        transform: translateY(0);
        z-index: 5;
      }
      .container.right-panel-active .overlay-container {
        transform: translateY(185.7%); /* Disesuaikan dengan 65/35 */
        border-radius: 100px 100px 0 0;
      }
      .container.right-panel-active .overlay {
        transform: translateY(-50%);
      }
      .container.right-panel-active .overlay-left {
        transform: translateY(0);
      }
      .container.right-panel-active .overlay-right {
        transform: translateY(15%);
      }
    }

