/* All your existing styles remain unchanged */
      /* Basic reset */
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        text-decoration: none;
      }

      body {
        font-family: Arial, sans-serif;
        /* Default fallback background - will be replaced by JavaScript */
        background: url("https://images.unsplash.com/photo-1470167290877-7d5d3446de4c?q=80&w=1888&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
        background-position: center;
        background-size: cover;
        background-attachment: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background-color: #f1f1f1;
      }

      /* Loading overlay for background */
      .bg-loading {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.1);
        z-index: 1;
        display: none;
      }

      /* Toast notification styles */
      .toast {
        visibility: hidden;
        min-width: 250px;
        background-color: #323232;
        color: white;
        text-align: center;
        border-radius: 5px;
        padding: 16px;
        position: fixed;
        z-index: 1001;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
        font-size: 17px;
        opacity: 0;
        transition: opacity 0.5s ease-in-out, bottom 0.5s ease-in-out;
      }

      .toast.show {
        visibility: visible;
        opacity: 1;
        bottom: 50px;
      }

      .toast.success {
        background-color: #4caf50;
      }
      .toast.error {
        background-color: #e74c3c;
      }

      /* Back button styling */
      .back-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 100;
        transition: transform 0.2s ease;
      }

      .back-btn-link {
        text-decoration: none;
        display: inline-block;
      }

      .back-btn-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 16px;
        background-color: rgba(76, 175, 80, 0.9);
        color: white;
        border: none;
        border-radius: 8px;
        font-family: Arial, sans-serif;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
      }

      .back-btn-button:hover {
        background-color: rgba(69, 160, 73, 1);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
      }

      .back-btn-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
      }

      .back-icon {
        font-size: 18px;
        font-weight: bold;
      }

      .back-text {
        display: inline-block;
      }

      /* Responsive adjustments */
      @media (max-width: 768px) {
        .back-btn {
          top: 15px;
          left: 15px;
        }

        .back-btn-button {
          padding: 8px 12px;
          font-size: 14px;
        }
      }

      @media (max-width: 480px) {
        .back-btn-button {
          padding: 8px;
        }

        .back-text {
          display: none; /* Hide text on very small screens */
        }
      }

      /* Custom Alert Styles */
      #custom-alert-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        backdrop-filter: blur(5px);
      }

      .custom-alert {
        background: white;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        max-width: 400px;
        width: 80%;
        text-align: center;
        position: relative;
        animation: alertFadeIn 0.3s ease-out forwards;
      }

      @keyframes alertFadeIn {
        from {
          opacity: 0;
          transform: translateY(-20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .custom-alert h3 {
        margin: 0 0 15px 0;
        color: #333;
        font-size: 18px;
      }

      .custom-alert p {
        margin: 0 0 20px 0;
        color: #666;
      }

      .alert-btn {
        padding: 10px 25px;
        background-color: #4caf50;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
      }

      .alert-btn:hover {
        background-color: #45a049;
      }

      .alert-success .alert-btn {
        background-color: #4caf50;
      }
      .alert-success .alert-btn:hover {
        background-color: #45a049;
      }

      .alert-error .alert-btn {
        background-color: #e74c3c;
      }
      .alert-error .alert-btn:hover {
        background-color: #c0392b;
      }

      .alert-success h3 {
        color: #2ecc71;
      }
      .alert-error h3 {
        color: #e74c3c;
      }

      .register-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        z-index: 10;
        position: relative;
      }

      .register-box {
        background: transparent;
        backdrop-filter: blur(30px);
        padding: 40px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 400px;
        color: white;
        transition: width 0.3s ease;
      }

      h2 {
        text-align: center;
        margin-bottom: 30px;
        font-size: 28px;
      }

      .textbox {
        margin-bottom: 20px;
      }

      .textbox input {
        width: 100%;
        padding: 12px;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        margin-top: 8px;
      }

      .textbox input:focus {
        outline: none;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
      }

      /* Mobile number field styles */
      .mobile-input-container {
        display: flex;
        gap: 10px;
      }

      .country-code {
        width: 30%;
        padding: 12px;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        margin-top: 8px;
        background-color: white;
      }

      .mobile-number {
        width: 70%;
      }

      .error-message {
        color: #ffcccc;
        font-size: 14px;
        margin-top: 5px;
        display: none;
      }

      .remember {
        display: flex;
        align-items: center;
        color: #f9f9f9;
      }

      .remember input {
        margin-right: 10px;
      }

      .btn {
        width: 100%;
        padding: 12px;
        background-color: #4caf50;
        border: none;
        border-radius: 6px;
        font-size: 18px;
        cursor: pointer;
        color: white;
        transition: background-color 0.3s ease;
      }

      .btn:hover {
        background-color: #45a049;
      }

      .footer {
        text-align: center;
        margin-top: 15px;
      }

      .footer a {
        color: #f1f1f1;
        text-decoration: none;
        font-size: 14px;
      }

      .footer a:hover {
        text-decoration: underline;
        color: #ff8a00;
      }

      /* Loading indicator */
      .loader {
        display: none;
        margin: 0 auto;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
      }

      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }

      /* Media Queries for responsiveness */

      /* Mobile Devices */
      @media (max-width: 321px) {
        .register-box {
          margin: 100px 0px;
        }
      }
      @media (max-width: 767px) {
        .register-box {
          padding: 20px;
          width: 80%;
        }

        h2 {
          font-size: 24px;
        }

        .textbox input {
          font-size: 14px;
        }

        .btn {
          font-size: 16px;
          padding: 10px;
        }
      }

      /* Tablets and small desktops */
      @media (min-width: 768px) and (max-width: 1024px) {
        .register-box {
          padding: 30px;
        }

        h2 {
          font-size: 26px;
        }

        .textbox input {
          font-size: 15px;
        }

        .btn {
          font-size: 17px;
          padding: 12px;
        }
      }

      /* Larger Desktops */
      @media (min-width: 1025px) {
        .register-box {
          padding: 40px;
        }

        h2 {
          font-size: 28px;
        }

        .textbox input {
          font-size: 16px;
        }

        .btn {
          font-size: 18px;
          padding: 12px;
        }
      }