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

      * {
          box-sizing: border-box;
      }

      :root {
          --primary-blue: #1e3a8a;
          --secondary-blue: #3b82f6;
          --text-dark: #333;
          --text-light: #f0f4f8;
          --bg-white: #fff;
          --border-grey: #ccc;
          --shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
      }

      /* --- Global & Layout Styles --- */
      body {
          font-family: 'Poppins', sans-serif;
          background-color: #f4f7f6;
          margin: 0;
          padding: 0;
          min-height: 100vh;
      }
      
      .navbar {
          background: #1e3a8a;
          padding: 1rem 2rem;
          display: flex;
          justify-content: space-between;
          align-items: center;
          position: sticky;
          top: 0;
          z-index: 1000;
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      }

      .navbar .logo {
          display: flex;
          align-items: center;
          gap: 1rem;
          font-size: 28px;
          font-family: "Caprasimo", serif;
          font-weight: 200;
          font-style: normal;
          color: #fff;
      }

      .navbar .logo a {
          text-decoration: none;
          color: inherit;
      }
      
      .navbar .logo i {
          vertical-align: middle;
      }

      main {
          padding: 2.5rem 0;
      }

      /* This centers the container within the main content area */
      .main-container {
          display: flex;
          width: 90%;
          max-width: 1200px;
          height: 80vh;
          box-shadow: var(--shadow);
          border-radius: 20px;
          overflow: hidden;
          margin: 0 auto; 
      }
      
      .left-panel {
          width: 50%;
          position: relative;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          text-align: center;
          color: var(--text-light);
          padding: 2rem;
          background-image: url('../img/image_login.webp');
          background-size: cover;
          background-position: center;
          transition: width 0.3s ease;
      }

      .background-overlay {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.4);
      }

      .left-panel-content {
          position: relative;
          z-index: 1;
      }

      .left-panel h1 {
          font-size: 2.8rem;
          font-weight: 700;
          margin-bottom: 0.5rem;
      }

      .left-panel p {
          font-size: 1rem;
          font-weight: 400;
          margin-top: 0;
      }

      .right-panel {
          background-color: var(--bg-white);
          width: 50%; /* Adjusted width for better flexbox balance */
          display: flex;
          position: relative;
          transition: width 0.3s ease;
      }

      .form-container {
          width: 100%;
          padding: 2rem;
          display: flex;
          flex-direction: column;
          justify-content: center;
          animation: fadeIn 0.5s ease-in-out;
      }

      @keyframes fadeIn {
          from {
              opacity: 0;
              transform: scale(0.95);
          }
          to {
              opacity: 1;
              transform: scale(1);
          }
      }

      .form-container h2 {
          font-size: 1.8rem;
          font-weight: 600;
          margin-bottom: 2rem;
          color: var(--text-dark);
      }


      .input-group {
        margin-bottom: 1rem;
      }

      label {
        display: block;
        margin-bottom: 0.3rem;
        font-weight: 600;
      }

      .phone-input, 
      .password-input-container {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 0.5rem;
        background: #fafafa;
      }

      .phone-input span {
        margin-right: 0.5rem;
        color: #666;
      }

      .phone-input input,
      .password-input-container input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 1rem;
      }

      /* Corrected CSS for toggle icon */
      .toggle-password {
        cursor: pointer;
        color: #888;
        margin-left: 0.5rem;
        padding-right: 0.5rem;
      }


      .btn {
        width: 100%;
        padding: 0.75rem;
        background: var(--primary-blue);
        color: white;
        font-size: 1rem;
        font-weight: bold;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        margin-top: 1rem;
        transition: background 0.3s;
      }

      .btn:hover {
        background: var(--secondary-blue);
      }

      /* Pop-up Overlay styles */
      #custom-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1001;
        transition: opacity 0.3s ease, visibility 0.3s ease;
      }

      /* Pop-up Card styles */
      .custom-popup-card {
        background-color: var(--bg-white);
        padding: 2rem;
        border-radius: 12px;
        box-shadow: var(--shadow);
        width: 90%;
        max-width: 400px;
        text-align: center;
        transform: scale(0.9);
        transition: transform 0.3s ease;
      }

      /* Hide the pop-up by default */
      .popup-hidden {
        visibility: hidden;
        opacity: 0;
      }

      /* Show the pop-up with a smooth animation */
      .popup-visible {
        visibility: visible;
        opacity: 1;
      }

      .custom-popup-buttons {
        display: flex;
        justify-content: space-around;
        margin-top: 1.5rem;
      }

      .custom-popup-buttons .btn {
        width: 45%;
      }
      
      /* --- Responsive Design --- */
      @media (max-width: 768px) {
          .main-container {
              flex-direction: column;
              height: auto;
              width: 95%;
              border-radius: 12px;
              margin: 0 auto;
          }

          .left-panel {
              width: 100%;
              height: 25vh;
              padding: 1rem;
          }

          .left-panel h1 {
              font-size: 1.6rem;
          }

          .left-panel p {
              font-size: 0.8rem;
          }

          .right-panel {
              width: 100%;
          }

          .form-container {
              padding: 1.5rem;
          }

          .form-container h2 {
              font-size: 1.5rem;
              margin-bottom: 1.5rem;
          }
      }