* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  
    font-family: "Roboto", sans-serif;
  }
  
  body {
    background: #f9fafb;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    max-width: none;
  }
  
  body::before {
    display: none;
  }
   
  .login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    margin-top: -60px;
  }
  
  .container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    max-width: 600px;
    width: 100%;
    min-width: 500px;
    height: auto;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
  }
  
  .backbutton {
    position: absolute;
    top: 32px;
    left: 25px;
    opacity: 1;
    z-index: 10;
  }
  
  .backbutton svg {
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
    opacity: 1;
    color: #374151;
  }
  
  .backbutton a:hover svg {
    opacity: 0.8;
    transform: scale(1.05);
  }
  
  
    .innercontainer {
      max-width: 300px;
      width: 100%;
      height: auto;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
  
  
  .right-container {
    flex: 1;
    padding: 56px 64px 28px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    color: #374151;
    margin-top: 0;
    opacity: 0.75;
  }
  
  .logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    opacity: 0.75;
    filter: brightness(0) saturate(100%) invert(26%) sepia(7%) saturate(612%) hue-rotate(177deg) brightness(93%) contrast(87%);
  }
  
  .logo span {
    font-size: 26px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
    color: #374151;
    opacity: 0.75;
  }
  
  .logo2 {
    display: none;
  }
  
  #boxtext {
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    color: #374151;
    opacity: 1;
  }
  
  .welcome-section {
    text-align: center;
    margin-bottom: 32px;
    width: 100%;
  }
  
  .welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #4b4d52;
    margin: 0 0 8px 0;
    font-family: 'Roboto', sans-serif;
  }
  
  .welcome-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-family: 'Roboto', sans-serif;
  }
  
  /* ---------- Form Elements ---------- */
  .right-container label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 8px;
    display: block;
    font-family: 'Roboto', sans-serif;
  }
  
  .right-container label:first-of-type {
    margin-top: 0;
  }
  
  .right-container input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    margin-top: 0px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
  }
  
  .right-container input::placeholder {
    color: #9ca3af;
    opacity: 1;
  }
  
  .right-container input:focus {
    border-color: #3161ff;
    box-shadow: 0 0 0 3px rgba(49, 97, 255, 0.1);
    outline: none;
    background-color: #ffffff;
  }
  
  /* ---------- Error Message ---------- */
  .errormessage {
    background-color: #ffeaea;
    border: 1.5px solid #ff8f8f;
    border-radius: 8px;
    color: #ff4d4d;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 400;
    width:100%;
    max-width:400px;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease, margin-bottom 0.3s ease, padding 0.3s ease;
  }
  
  .errormessage.show {
    opacity: 1;
    max-height: 100px;
    padding: 10px 14px;
    margin-top: 12px;
    margin-bottom: 0;
  }
  
  .error-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    flex-shrink: 0;
  }
  
  /* ---------- Buttons ---------- */
  #login {
    width: 100%;
    max-width: 400px;
    background-color: #e5e7eb;
    color: #9ca3af;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 24px;
    font-size: 16px;
    cursor: default;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    box-shadow: none;
  }
  
  #login:enabled {
    background-color: #3161ff;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(49, 97, 255, 0.2);
  }
  
  #login:enabled:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 97, 255, 0.3);
  }
  
  #login:enabled:active {
    transform: translateY(0);
  }
  
  
  /* ---------- Links ---------- */
  #forgot {
    text-align: center;
    margin-top: 16px;
  }
  
  #forgot a {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
  }
  
  #forgot a:hover {
    text-decoration: underline;
  }
  
  #subtoday {
    text-align: center;
    margin-top: 0;
    font-size: 15px;
    color: #374151;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    max-width: 560px;
    opacity: 1;
    white-space: nowrap;
  }
  
  #subtoday a {
    color: #3161ff;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
  }
  
  #subtoday a:hover {
    text-decoration: underline;
  }
  
  .mobile-welcome{
      display:none;
    }
  
  @media (max-width: 615px) {
    body {
      background: #ffffff;
      height: 100vh;
      height: 100dvh;
      overflow: hidden;
      padding: 0;
      position: fixed;
      width: 100%;
    }
  
    body::before {
      display: none;
    }
  
    .login-wrapper {
      width: 100%;
      max-width: 100%;
      margin-top: 2rem;
      height: 100vh;
      height: 100dvh;
      display: flex;
      flex-direction: column;
      position: relative;
      background: #fff;
      overflow: hidden;
    }
  
    .logo {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      margin-bottom: 0;
      padding: 20px 0;
      opacity: 0.75;
      background: #fff;
      border-bottom: none;
      position: relative;
      flex-shrink: 0;
      z-index: 1;
    }
  
    .logo img {
      width: 40px;
      height: 40px;
      margin-right: 10px;
      opacity: 0.75;
      filter: brightness(0) saturate(100%) invert(26%) sepia(7%) saturate(612%) hue-rotate(177deg) brightness(93%) contrast(87%);
    }
  
    .logo span {
      font-size: 24px;
      color: #3a3f46;
      opacity: 1;
    }
  
    .container {
      flex-direction: column;
      width: 100%;
      flex: 1;
      max-width: 100%;
      box-shadow: none;
      border-radius: 0;
      border: none;
      padding: 0;
      margin: 0;
      position: relative;
      display: flex;
      overflow: hidden;
      min-height: 0;
    }
  
    .backbutton {
      position: fixed;
      top: 20px;
      left: 20px;
      z-index: 50;
    }
  
    .backbutton svg {
      width: 32px;
      height: 32px;
      color: #374151;
    }
  
    .right-container {
      padding: 20px 24px 100px 24px;
      margin: 0;
      width: 100%;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
      background: #fff;
      min-height: 0;
    }
  
    .welcome-section {
      display: none;
    }
  
    .mobile-welcome {
      font-size: 28px;
      font-weight: 500;
      color: #969696;
      margin: 0 0 32px 0;
      text-align: center;
      display: block;
      font-family: 'Roboto', sans-serif;
      flex-shrink: 0;
    }
  
    .innercontainer {
      width: 100%;
      max-width: 100%;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      min-height: 0;
    }
    
    /* Ensure form container centers its children */
    #login-form {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .right-container label {
      font-size: 14px;
      margin-top: 20px;
      margin-bottom: 8px;
      width: 80%;
      max-width: 80%;
      align-self: center;
    }

    .right-container label:first-of-type {
      margin-top: 0;
    }

    /* Username input - 80% of screen width, centered */
    #username {
      width: 80vw !important;
      max-width: 80vw !important;
      padding: 12px 16px;
      font-size: 16px;
      box-sizing: border-box;
      margin-left: auto !important;
      margin-right: auto !important;
      display: block;
    }

    /* All inputs in right-container - 80% of screen width, centered */
    .right-container input {
      width: 80vw !important;
      max-width: 80vw !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    /* Password wrapper - 80% of screen width, centered */
    .password-wrapper {
      width: 80vw !important;
      max-width: 80vw !important;
      margin-bottom: 0;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    /* Password input inside wrapper - full width of wrapper */
    .password-wrapper input {
      width: 100% !important;
      max-width: 100% !important;
    }
    
    /* Labels - 80% of screen width, centered */
    .right-container label {
      width: 80vw !important;
      max-width: 80vw !important;
    }
    
    /* Error message - 80% of screen width, centered */
    .errormessage {
      width: 80vw !important;
      max-width: 80vw !important;
    }
    
    /* Error message - 80% of screen width, centered */
    .errormessage {
      width: 80vw !important;
      max-width: 80vw !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    /* Login button - same width as inputs (80vw), centered */
    #login {
      width: 80vw !important;
      max-width: 80vw !important;
      margin-top: 24px;
      margin-left: auto !important;
      margin-right: auto !important;
      font-size: 16px;
      padding: 14px 16px;
      display: block;
      box-sizing: border-box;
    }
  
    #forgot {
      width: 100%;
      text-align: center;
      margin-top: 16px;
    }
  
    #subtoday {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      max-width: calc(100% - 48px);
      text-align: center;
      margin: 0;
      padding: 16px 0 0 0;
      font-size: 15px;
      z-index: 10;
      border-top: 1px solid #e5e7eb;
      white-space: nowrap;
    }
  
    .logo2 {
      display: none;
    }
  }
  
  
  .footer-links {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px; 
    margin-top: 20px;
    font-size: 14px;
    position: absolute;
    bottom:30px;
    font-family: 'Roboto', sans-serif;
    color: #6b7280;
    z-index: 2;
  }
  
  .footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-links a:hover {
    color: #374151; 
  }
  
  
  @media (max-width: 615px) {
    .footer-links {
      display: none;
    }
  }
  
  
  
  .password-wrapper {
      position: relative;
      width: 100%;
      margin-bottom: 0;
      max-width: 400px;
      height: auto;
  }
  
  .password-toggle {
      position: absolute;
      right: 12px;
      top: 50% ;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: #64748b;
      padding: 5px;
      border-radius: 4px;
      transition: color 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .password-toggle:hover {
      color: #6366F1;
  }
  
  .eye-closed {
      display: none;
  }
  
  .password-toggle.show-password .eye-open {
      display: none;
  }
  
  .password-toggle.show-password .eye-closed {
      display: block;
  }