 :root {
      --brown: #82391f;
      --brown-dark: #321c13;
      --brown-deep: #21140e;
      --gold: #d79a19;
      --gold-light: #f6cb68;
      --cream: #fff8eb;
      --muted: #bba18c;
      --white: #ffffff;
	  --btn-bg:#321c13;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      min-height: 100vh;
      font-family: "Poppins", sans-serif;
      background: var(--brown-deep);
      color: var(--white);
    }

    button, input {
      font: inherit;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .Main-Div {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
    }

    /* LEFT PANEL - LIGHT THEME */

    .left-sec {
      position: relative;
      min-height: 100vh;
      padding: 36px 7%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      color: var(--brown-dark);

      background:
        radial-gradient(
          circle at 10% 10%,
          rgba(215, 154, 25, 0.12),
          transparent 35%
        ),
        linear-gradient(
          rgba(255, 248, 235, 0.85),
          rgba(255, 248, 235, 0.97)
        ),
        url("../images/bagrounimg.png")
        center / cover no-repeat;
    }

    .left-sec::after {
      content: "✦";
      position: absolute;
      right: 12%;
      top: 27%;
      color: var(--gold);
      font-size: 70px;
      opacity: 0.65;
    }

    .brand-logo {
      width: 100%;
      height: 76px;
      object-fit: contain;
      border-radius: 5px;
      padding: 3px;
    }
   

    .left-sec-content {
      position: relative;
      z-index: 1;
      max-width: 570px;
      padding: 65px 0;
    }

   

    .left-sec h1 {
      font-size: 3.2rem;
      line-height: 1.18;
      font-weight: 800;
      letter-spacing: -2px;
      margin-bottom: 22px;
    }

    .left-sec h1 span {
      display: block;
      color: var(--brown);
    }

    .left-sec-description {
      font-size: 14px;
      line-height: 1.9;
      color: #766254;
    }

    

    /* RIGHT PANEL - DARK LOGIN THEME */

    .login-section {
      min-height: 100vh;
      background:
        radial-gradient(
          circle at 90% 10%,
          rgba(215, 154, 25, 0.12),
          transparent 35%
        ),
        var(--brown-deep);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 45px 30px;
    }

    .login-card {
      width: 100%;
      max-width: 410px;
      animation: appear 0.7s ease both;
    }

    @keyframes appear {
      from {
        opacity: 0;
        transform: translateY(18px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .mobile-logo {
      display: none;
    }

    .welcome {
      margin-bottom: 32px;
    }

    .welcome .small-title {
      color: var(--gold-light);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 12px;
    }

    .welcome h2 {
      color: var(--white);
      font-size: clamp(29px, 3vw, 37px);
      font-weight: 800;
      letter-spacing: -1.2px;
      line-height: 1.3;
      margin-bottom: 9px;
    }

    .welcome h2 span {
      color: var(--gold-light);
    }

    .welcome p {
      color: #e7d4c3;
      font-size: 13px;
      line-height: 1.8;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 9px;
      color: #f3dfc5;
    }

    .input-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      border: 1px solid #6b4a35;
      border-radius: 10px;
      background: #fffdf9;
      padding: 0 14px;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .input-wrap:focus-within {
      border-color: var(--gold);
      box-shadow: 0 0 0 4px rgba(215, 154, 25, 0.18);
    }

    .input-icon {
      color: var(--brown);
      font-size: 18px;
      flex-shrink: 0;
    }

    .input-wrap input {
      width: 100%;
      min-width: 0;
      height: 51px;
      border: 0;
      outline: none;
      background: transparent;
      color: var(--brown-dark);
      font-size: 12px;
    }

    .input-wrap input::placeholder {
      color: #b3a397;
    }

    .password-toggle {
      border: 0;
      background: none;
      color: var(--brown);
      cursor: pointer;
      font-size: 11px;
      font-weight: 700;
    }

    .password-toggle:focus-visible,
    .login-button:focus-visible,
    a:focus-visible {
      outline: 2px solid var(--gold-light);
      outline-offset: 4px;
    }

    .form-options {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin: 2px 0 25px;
      font-size: 11px;
    }

    .remember {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #e7d4c3;
      cursor: pointer;
    }

    .remember input {
      accent-color: var(--gold);
    }

    .forgot {
      color: var(--gold-light);
      font-weight: 600;
    }

    .forgot:hover,
    .signup a:hover {
      text-decoration: underline;
    }

    .login-button {
      width: 100%;
      min-height: 53px;
      border: 0;
      border-radius: 10px;
      background: linear-gradient(110deg, #78321c, #a84e25);
      color: var(--white);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 1px;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(130, 57, 31, 0.3);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .login-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 24px rgba(130, 57, 31, 0.4);
    }

    .login-button:active {
      transform: translateY(0);
    }

    .signup {
      text-align: center;
      color: #d8c1ae;
      font-size: 11px;
      line-height: 1.8;
      margin-top: 25px;
    }

    .signup a {
      color: var(--gold-light);
      font-weight: 700;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 13px;
      margin: 27px 0 20px;
      color: #d8c1ae;
      font-size: 10px;
    }

    .divider::before,
    .divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: #59402e;
    }

    .marathi-note {
      text-align: center;
      color: var(--gold-light);
      font-family: "Noto Sans Devanagari", sans-serif;
      font-size: 12px;
      line-height: 1.8;
    }

    .copyright {
      text-align: center;
      font-size: 10px;
      color: #bba18c;
      margin-top: 32px;
    }

    /* RESPONSIVE DESIGN */

    @media (max-width: 900px) {
      .Main-Div {
        grid-template-columns: 0.9fr 1.1fr;
      }

      .left-sec {
        padding: 30px 6%;
      }

      .brand-logo {
        width: 78px;
        height: 60px;
      }

      .brand-subtitle {
        font-size: 8px;
        letter-spacing: 1px;
      }

      .left-sec h1 {
        font-size: 42px;
      }

      .login-section {
        padding: 35px 24px;
      }
    }

    @media (max-width: 650px) {
      .Main-Div {
        display: block;
      }

      .left-sec {
        display: none;
      }

      .login-section {
        min-height: 100vh;
        min-height: 100svh;
        padding: 35px 22px;
        align-items: center;
      }

      .login-card {
        max-width: 430px;
      }

      .mobile-logo {
        display: block;
        margin-bottom: 38px;
      }

      .mobile-logo img {
        width: 100%;
        height: 60px;
		background-color: rgb(255 248 235 / 97%);
      }
      .welcome h2 {
        font-size: 32px;
      }

      .copyright {
        margin-top: 28px;
      }
    }

    @media (max-width: 360px) {
      .login-section {
        padding: 28px 16px;
      }

      .form-options {
        font-size: 10px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }
	
/* ==========================
       LOADING OVERLAY
    ========================== */
    #loadingOverlay {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1000000;

        justify-content: center;
        align-items: center;

        /* Prevent clicking anything behind it */
        pointer-events: all;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        border: 5px solid rgba(255, 255, 255, 0.3);
        border-top: 5px solid #ffffff;
        border-radius: 50%;
        animation: spinner 0.8s linear infinite;
    }

    @keyframes spinner {
        to {
            transform: rotate(360deg);
        }
    }

    /* Prevent page scrolling while loading/OTP popup is open */
    body.no-scroll {
        overflow: hidden;
        height: 100vh;
    }