html {
  width: 100%;
  height: 100%;
  font-family: "Roboto", sans-serif;
}
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Default to light logo */
.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

/* Switch to dark logo when system prefers dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1d23;
  }

  .logo-light {
    display: none;
  }

  .logo-dark {
    display: block;
  }
}

/* Light mode styling */
@media (prefers-color-scheme: light) {
  body {
    background-color: #f9fafb;
  }
}

/* Screen Management */
.screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

#login-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.login-bg {
  position: absolute;
  top: -86.79vh;
  left: -26.2vw;
  width: 74.22vw;
  height: 236.64vh;
  background-image: url("https://storage.googleapis.com/regatta-ui/images/assets/login-bg.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: -1;
}

.login-right {
  position: absolute;
  top: 13.78vh; /* 123px / 893px = 13.78% of viewport height */
  left: 65vw; /* 25% from the right side */
}

.icon-container {
  width: 3.23vw; /* 62px / 1920px = 3.23% of viewport width */
  height: 7.14vh; /* 63.77px / 893px = 7.14% of viewport height */
  background-image: url("https://storage.googleapis.com/regatta-ui/images/assets/icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* For wide screens (aspect ratio > 2:1) */
@media (min-aspect-ratio: 2/1) {
  .login-bg {
    /* Increase width and move further left for better coverage */
    width: calc(74.22vw * 1.3);
    left: calc(-26.2vw * 1.7);
    top: -86.79vh;
    height: 236.64vh;
  }

  .login-left {
    /* Adjust text container for wider SVG coverage */
    max-width: calc(58vw - 16px);
    width: clamp(340px, 45vw, 750px);
    gap: clamp(80px, 6vw, 120px);
  }

  #login-right-title {
    font-size: clamp(32px, 2.8vw, 40px);
  }
}

/* For ultra-wide screens (aspect ratio > 2.4:1) */
@media (min-aspect-ratio: 2.4/1) {
  .login-bg {
    width: calc(74.22vw * 1.6);
    left: calc(-26.2vw * 2.2);
    top: -86.79vh;
    height: 236.64vh;
  }

  .login-left {
    max-width: calc(68vw - 16px);
    width: clamp(360px, 50vw, 800px);
    gap: clamp(100px, 7vw, 140px);
  }

  .login-right {
    left: clamp(75vw, 76vw, 77vw);
  }

  #login-right-title {
    font-size: clamp(30px, 2.5vw, 38px);
  }

  #login-right-form-button {
    width: clamp(180px, 12vw, 200px);
    font-size: clamp(16px, 1.2vw, 18px);
  }

  .google img {
    width: clamp(36px, 2vw, 44px);
    height: clamp(36px, 2vw, 44px);
  }
}

/* For extremely wide screens (aspect ratio > 3:1) */
@media (min-aspect-ratio: 3/1) {
  .login-bg {
    width: calc(74.22vw * 2);
    left: calc(-26.2vw * 2.7);
    top: -86.79vh;
    height: 236.64vh;
  }

  .login-left {
    max-width: calc(78vw - 16px);
    width: clamp(380px, 55vw, 850px);
    gap: clamp(120px, 8vw, 160px);
  }

  .login-right {
    left: clamp(75vw, 77vw, 78vw);
  }

  #login-right-title {
    font-size: clamp(28px, 2.2vw, 36px);
  }

  #login-right-form-button {
    width: clamp(185px, 10vw, 205px);
    font-size: clamp(16px, 1vw, 18px);
  }

  .google img {
    width: clamp(38px, 1.8vw, 46px);
    height: clamp(38px, 1.8vw, 46px);
  }
}

.login-left {
  /* Constrain width to stay within SVG bounds while keeping good proportions */
  width: clamp(320px, 42vw, 700px);
  height: auto;
  position: absolute;
  align-self: flex-start;
  left: clamp(16px, 5vw, 100px);
  top: 45%;
  transform: translateY(-45%);
  z-index: 1;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: clamp(50px, 4vw, 80px);
  /* Ensure content doesn't overflow SVG */
  max-width: calc(48vw - 16px);
}
.login-right {
  align-items: center;
  color: #1a1d23;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.login-right-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-right-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Dark mode text color override */
@media (prefers-color-scheme: dark) {
  .login-left {
    color: #1a1d23;
  }
  .login-right {
    color: #f9fafb;
  }
}
#login-left-title {
  font-weight: 800;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 115%;
  letter-spacing: -2%;
}
#login-left-subtitle {
  font-weight: 500;
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 140%;
  letter-spacing: 8%;
}
#login-left-description {
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 145%;
  letter-spacing: -1%;
}

#login-right-title {
  font-weight: 700;
  font-size: 35px;
  line-height: 115%;
  letter-spacing: -2%;
}
.login-right-form-button {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

#login-right-form-button {
  width: 190px;
  height: 61px;
  border-radius: 100px;
  background-color: #fd6d24;
  border: none;
  color: white;
  font-family: "Inconsolata", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

#login-right-form-button:hover {
  background-color: #e55a1f;
  transform: translateY(-1px);
}

#login-right-form-button:active {
  transform: translateY(0);
}

.google {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.google img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.google img:hover {
  transform: scale(1.1);
}

/* Contact us container styling */
#contact-us {
  margin-top: 20px;
}

/* Laptop screen compatibility - medium height screens */
@media (max-height: 800px) and (min-height: 601px) {
  .login-right {
    top: clamp(8vh, 10vh, 12vh);
    left: 62vw;
    gap: clamp(24px, 3vh, 28px);
  }

  #login-right-title {
    font-size: clamp(30px, 3.5vh, 32px);
  }

  .icon-container {
    width: clamp(2.8vw, 3.2vw, 3.5vw);
    height: clamp(5.5vh, 6vh, 6.5vh);
  }

  .login-right-form-button {
    margin-top: clamp(20px, 2.5vh, 24px);
  }

  #login-right-form-button {
    width: clamp(170px, 20vw, 185px);
    height: clamp(50px, 6.5vh, 55px);
    font-size: clamp(15px, 2.2vh, 16px);
    letter-spacing: clamp(0.05em, 0.8vh, 0.08em);
  }

  .google {
    margin-top: clamp(16px, 2.2vh, 20px);
  }

  .google img {
    width: clamp(32px, 4.5vh, 36px);
    height: clamp(32px, 4.5vh, 36px);
  }

  #contact-us {
    margin-top: clamp(16px, 2.2vh, 20px);
  }

  .login-right-form {
    gap: clamp(16px, 2.5vh, 18px);
  }

  .login-right-form-input-label {
    font-size: clamp(16px, 2.2vh, 17px);
  }

  .login-right-form input {
    font-size: clamp(14px, 2vh, 15px);
    padding: clamp(6px, 1vh, 8px) 0 clamp(6px, 1vh, 8px) 4px;
  }

  .login-right-form a {
    font-size: clamp(14px, 2vh, 15px);
  }
}

/* Laptop screen compatibility - shorter height screens */
@media (max-height: 700px) and (min-height: 601px) {
  .login-right {
    top: clamp(6vh, 8vh, 10vh);
    left: 60vw;
    gap: clamp(20px, 2.8vh, 24px);
  }

  #login-right-title {
    font-size: clamp(28px, 3.2vh, 30px);
  }

  .icon-container {
    width: clamp(2.6vw, 3vw, 3.2vw);
    height: clamp(5vh, 5.5vh, 6vh);
  }

  .login-right-form-button {
    margin-top: clamp(16px, 2.2vh, 20px);
  }

  #login-right-form-button {
    width: clamp(160px, 18vw, 175px);
    height: clamp(48px, 6vh, 52px);
    font-size: clamp(14px, 2vh, 15px);
    letter-spacing: clamp(0.05em, 0.7vh, 0.08em);
  }

  .google {
    margin-top: clamp(14px, 2vh, 18px);
  }

  .google img {
    width: clamp(30px, 4vh, 34px);
    height: clamp(30px, 4vh, 34px);
  }

  #contact-us {
    margin-top: clamp(14px, 2vh, 18px);
  }

  .login-right-form {
    gap: clamp(14px, 2.2vh, 16px);
  }

  .login-right-form-input-label {
    font-size: clamp(15px, 2vh, 16px);
  }

  .login-right-form input {
    font-size: clamp(13px, 1.8vh, 14px);
    padding: clamp(5px, 0.8vh, 7px) 0 clamp(5px, 0.8vh, 7px) 4px;
  }

  .login-right-form a {
    font-size: clamp(13px, 1.8vh, 14px);
  }
}

/* Laptop screen compatibility - medium width screens (768px-1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 601px) {
  .login-right {
    left: clamp(58vw, 60vw, 62vw);
  }

  .login-right-form-input {
    width: clamp(320px, 35vw, 366px);
  }

  .input {
    width: clamp(320px, 35vw, 366px);
  }
}

/* Laptop screen compatibility - very short screens (height 500px-600px) */
@media (max-height: 600px) and (min-height: 501px) {
  .login-right {
    top: clamp(4vh, 6vh, 8vh);
    left: 58vw;
    gap: clamp(16px, 2.5vh, 20px);
  }

  #login-right-title {
    font-size: clamp(26px, 3vh, 28px);
  }

  .icon-container {
    width: clamp(2.4vw, 2.8vw, 3vw);
    height: clamp(4.5vh, 5vh, 5.5vh);
  }

  .login-right-form-button {
    margin-top: clamp(12px, 2vh, 16px);
  }

  #login-right-form-button {
    width: clamp(150px, 16vw, 165px);
    height: clamp(44px, 5.5vh, 48px);
    font-size: clamp(13px, 1.8vh, 14px);
    letter-spacing: clamp(0.05em, 0.6vh, 0.08em);
  }

  .google {
    margin-top: clamp(12px, 1.8vh, 16px);
  }

  .google img {
    width: clamp(28px, 3.5vh, 32px);
    height: clamp(28px, 3.5vh, 32px);
  }

  #contact-us {
    margin-top: clamp(12px, 1.8vh, 16px);
  }

  .login-right-form {
    gap: clamp(12px, 2vh, 14px);
  }

  .login-right-form-input-label {
    font-size: clamp(14px, 1.8vh, 15px);
  }

  .login-right-form input {
    font-size: clamp(12px, 1.6vh, 13px);
    padding: clamp(4px, 0.6vh, 6px) 0 clamp(4px, 0.6vh, 6px) 4px;
  }

  .login-right-form a {
    font-size: clamp(12px, 1.6vh, 13px);
  }
}

/* Compact layout for screens around 650px height */
@media (max-height: 650px) and (min-height: 600px) {
  .login-right {
    top: clamp(6vh, 8vh, 10vh) !important;
    left: 58vw !important;
    gap: clamp(18px, 2.2vh, 22px) !important;
  }

  .login-right-header {
    gap: clamp(6px, 1.2vh, 8px) !important;
  }

  #login-right-title {
    font-size: clamp(26px, 3vh, 28px) !important;
  }

  .icon-container {
    width: clamp(2.4vw, 2.8vw, 3vw) !important;
    height: clamp(4.5vh, 5vh, 5.5vh) !important;
  }

  .login-right-form {
    gap: clamp(14px, 2vh, 16px) !important;
  }

  .login-right-form-input-label {
    font-size: clamp(14px, 1.8vh, 15px) !important;
  }

  .login-right-form input {
    font-size: clamp(12px, 1.6vh, 13px) !important;
    padding: clamp(4px, 0.6vh, 6px) 0 clamp(4px, 0.6vh, 6px) 4px !important;
  }

  .login-right-form a {
    font-size: clamp(12px, 1.6vh, 13px) !important;
  }

  .login-right-form-button {
    margin-top: clamp(14px, 2vh, 18px) !important;
  }

  #login-right-form-button {
    width: clamp(150px, 16vw, 165px) !important;
    height: clamp(44px, 5.5vh, 48px) !important;
    font-size: clamp(13px, 1.8vh, 14px) !important;
    letter-spacing: clamp(0.05em, 0.6vh, 0.08em) !important;
  }

  .google {
    margin-top: clamp(12px, 1.8vh, 16px) !important;
  }

  .google img {
    width: clamp(28px, 3.5vh, 32px) !important;
    height: clamp(28px, 3.5vh, 32px) !important;
  }

  #contact-us {
    margin-top: clamp(12px, 1.8vh, 16px) !important;
  }

  #contact-us-link {
    font-size: clamp(12px, 1.6vh, 13px) !important;
  }

  .feedback-message.show {
    margin-top: clamp(8px, 1.2vh, 10px) !important;
    margin-bottom: clamp(8px, 1.2vh, 10px) !important;
    padding: clamp(6px, 1vh, 8px) clamp(8px, 1.2vh, 10px) !important;
    font-size: clamp(11px, 1.4vh, 12px) !important;
  }
}

/* Proper scaling for 638px height specifically */
@media (max-height: 640px) and (min-height: 620px) {
  .login-right {
    top: clamp(8vh, 10vh, 12vh) !important;
    left: 58vw !important;
    gap: clamp(20px, 2.5vh, 24px) !important;
  }

  .login-right-header {
    gap: clamp(6px, 1.2vh, 8px) !important;
  }

  #login-right-title {
    font-size: clamp(28px, 3.2vh, 30px) !important;
  }

  .icon-container {
    width: clamp(2.6vw, 3vw, 3.2vw) !important;
    height: clamp(5vh, 5.5vh, 6vh) !important;
  }

  .login-right-form {
    gap: clamp(16px, 2.2vh, 18px) !important;
  }

  .login-right-form-input-label {
    font-size: clamp(15px, 2vh, 16px) !important;
  }

  .login-right-form input {
    font-size: clamp(13px, 1.8vh, 14px) !important;
    padding: clamp(5px, 0.8vh, 7px) 0 clamp(5px, 0.8vh, 7px) 4px !important;
  }

  .login-right-form a {
    font-size: clamp(13px, 1.8vh, 14px) !important;
  }

  .login-right-form-button {
    margin-top: clamp(16px, 2.2vh, 20px) !important;
  }

  #login-right-form-button {
    width: clamp(160px, 18vw, 175px) !important;
    height: clamp(48px, 6vh, 52px) !important;
    font-size: clamp(14px, 2vh, 15px) !important;
    letter-spacing: clamp(0.05em, 0.7vh, 0.08em) !important;
  }

  .google {
    margin-top: clamp(14px, 2vh, 18px) !important;
  }

  .google img {
    width: clamp(30px, 4vh, 34px) !important;
    height: clamp(30px, 4vh, 34px) !important;
  }

  #contact-us {
    margin-top: clamp(14px, 2vh, 18px) !important;
  }

  #contact-us-link {
    font-size: clamp(13px, 1.8vh, 14px) !important;
  }

  .feedback-message.show {
    margin-top: clamp(8px, 1.2vh, 12px) !important;
    margin-bottom: clamp(8px, 1.2vh, 12px) !important;
    padding: clamp(6px, 1vh, 8px) clamp(8px, 1.2vh, 12px) !important;
    font-size: clamp(11px, 1.6vh, 12px) !important;
  }
}

/* Responsive design using viewport height for very short screens */
@media (max-height: 500px) {
  .login-left {
    gap: clamp(48px, 6vh, 80px);
    top: 45%;
    transform: translateY(-45%);
    /* Slightly smaller content on short screens */
    width: clamp(300px, 38vw, 600px);
    max-width: calc(46vw - 16px);
  }

  #login-left-title {
    font-size: clamp(34px, 5vh, 50px);
    line-height: 110%;
  }

  #login-left-subtitle {
    font-size: clamp(18px, 2.5vh, 21px);
    line-height: 130%;
  }

  #login-left-description {
    font-size: clamp(17px, 2.2vh, 20px);
    line-height: 135%;
  }

  .login-right {
    top: clamp(8vh, 12vh, 15vh);
    left: 58vw;
    gap: clamp(20px, 3vh, 28px);
  }

  #login-right-title {
    font-size: clamp(28px, 4vh, 32px);
  }

  .icon-container {
    width: clamp(2.8vw, 3.5vw, 4vw);
    height: clamp(5vh, 6vh, 7vh);
  }

  .login-right-form-button {
    margin-top: clamp(12px, 2vh, 16px);
  }

  #login-right-form-button {
    width: clamp(160px, 38vw, 180px);
    height: clamp(45px, 6vh, 55px);
    font-size: clamp(14px, 2.8vh, 16px);
    letter-spacing: clamp(0.05em, 1vh, 0.08em);
  }

  .google {
    margin-top: clamp(12px, 2vh, 16px);
  }

  .google img {
    width: clamp(28px, 4vh, 32px);
    height: clamp(28px, 4vh, 32px);
  }

  #contact-us {
    margin-top: clamp(12px, 2vh, 16px);
  }
}

/* Form styling */
.login-right-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-right-form-input {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 366px;
}

.input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 366px;
}

/* Label styling */
.login-right-form-input-label {
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -2%;
  color: inherit;
  padding-left: 4px;
}

/* Input styling */
.login-right-form input {
  font-weight: 300;
  font-size: 15px;
  line-height: 100%;
  letter-spacing: -2%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d2d2d4;
  padding: 8px 0 8px 4px;
  outline: none;
  color: inherit;
  font-family: "Roboto", sans-serif;
}

.login-right-form input::placeholder {
  color: #9ca3af;
  font-weight: 300;
  font-size: 15px;
  line-height: 100%;
  letter-spacing: -2%;
}

.login-right-form input:focus {
  border-bottom-color: #fd6d24;
}

/* Link styling */
.login-right-form a {
  text-decoration: underline;
  font-weight: 400;
  font-size: 15px;
  line-height: 0;
  letter-spacing: -2%;
  color: inherit;
  align-self: flex-start;
  margin-top: 4px;
}

.login-right-form a:hover {
  opacity: 0.8;
}

/* Contact us link styling */
#contact-us-link {
  color: #fd6d24 !important;
  text-decoration: underline;
  font-weight: 400;
  font-size: 16px;
}

#contact-us-link:hover {
  opacity: 0.8;
}

/* Contact us text container styling */
#contact-us-text {
  text-align: center;
  font-weight: bold;
}

/* Error message styling */
.error-message {
  color: #dc2626;
  font-size: 12px;
  font-weight: 400;
  line-height: 140%;
  margin-top: 4px;
  padding-left: 4px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.error-message.show {
  opacity: 1;
}

/* Input error state - higher specificity to override progressive enhancement */
.login-right-form input.error,
.login-right-form
  input.error:invalid:not(:placeholder-shown)[data-interacted="true"] {
  border-bottom-color: #dc2626 !important;
}

/* Password input wrapper styling */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 32px;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  right: 4px;
  bottom: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.password-toggle:hover {
  opacity: 0.8;
}

.password-toggle:focus {
  outline: none;
  opacity: 1;
}

/* Progressive enhancement: Show password toggle on focus without JS */
.password-input-wrapper:focus-within .password-toggle {
  opacity: 1;
}

/* Hide password toggle by default on mobile for better UX */
@media (max-width: 480px) {
  .password-toggle {
    opacity: 0.8;
  }
}

.eye-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%);
}

/* Dark mode filter for eye icon */
@media (prefers-color-scheme: dark) {
  .eye-icon {
    filter: brightness(0) saturate(100%) invert(1);
  }
}

/* Loading spinner styling */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Loading state for button */
#login-right-form-button.loading {
  background-color: #e55a1f;
  cursor: not-allowed;
  pointer-events: none;
}

/* Spinner display is now controlled by JavaScript */

/* Success/Error feedback styling */
.feedback-message {
  padding: 0 !important;
  border-radius: 8px;
  margin-top: 0 !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  text-align: center;
  height: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.feedback-message.show {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-bottom: 16px;
  margin-top: 16px !important;
  padding: 12px 16px !important;
}

.feedback-message.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.feedback-message.error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Dark mode feedback styling */
@media (prefers-color-scheme: dark) {
  .feedback-message.success {
    background-color: #064e3b;
    color: #bbf7d0;
    border: 1px solid #065f46;
  }

  .feedback-message.error {
    background-color: #450a0a;
    color: #fca5a5;
    border: 1px solid #7f1d1d;
  }
}

/* Disable form inputs during loading */
.login-right-form.loading input {
  opacity: 0.6;
  pointer-events: none;
}

.login-right-form.loading .password-toggle {
  opacity: 0.3;
  pointer-events: none;
}

/* Progressive enhancement: Style form elements for non-JS fallback */
/* Only show validation styles after user interaction */
.login-right-form
  input:invalid:not(:placeholder-shown):not([data-interacted="true"]) {
  border-bottom-color: #d2d2d4;
}

.login-right-form
  input:invalid:not(:placeholder-shown)[data-interacted="true"] {
  border-bottom-color: #dc2626;
}

.login-right-form input:valid[data-interacted="true"] {
  border-bottom-color: #10b981;
}

/* Ensure form works without JavaScript */
.login-right-form:not(.loading) button[type="submit"] {
  cursor: pointer;
}

/* Mobile responsive feedback */
@media (max-width: 480px) {
  .feedback-message {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Mobile screens - hide background and center content */
@media (max-width: 480px) {
  .login-bg {
    display: none;
  }

  #login-screen {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .login-left {
    width: 90vw;
    max-width: 340px;
    height: auto;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    padding: 16px;
    margin: 0 auto;
    text-align: center;
    gap: 42px;
  }

  #login-left-title {
    font-size: clamp(30px, 7vw, 38px);
    line-height: 110%;
    margin-bottom: 10px;
  }

  #login-left-subtitle {
    font-size: clamp(17px, 3.5vw, 19px);
    line-height: 130%;
    margin-bottom: 14px;
  }

  #login-left-description {
    font-size: clamp(17px, 3.2vw, 18px);
    line-height: 140%;
  }

  .login-right {
    position: relative !important;
    left: -10vw !important;
    top: 0 !important;
    margin-top: 24px;
    gap: 32px;
  }

  #login-right-title {
    font-size: clamp(26px, 6vw, 30px);
    text-align: center;
  }

  .icon-container {
    width: clamp(48px, 12vw, 60px);
    height: clamp(48px, 12vw, 60px);
  }

  .login-right-form {
    max-width: 90vw;
    width: 100%;
  }

  .login-right-form-input-label {
    font-size: 16px;
  }

  .login-right-form input {
    font-size: 14px;
  }

  .login-right-form a {
    font-size: 14px;
  }

  .login-right-form-button {
    margin-top: clamp(18px, 4.5vw, 24px);
  }

  #login-right-form-button {
    width: clamp(170px, 45vw, 190px);
    height: clamp(50px, 12vw, 61px);
    font-size: clamp(15px, 3.8vw, 17px);
    letter-spacing: clamp(0.05em, 0.8vw, 0.1em);
  }

  .google {
    margin-top: clamp(18px, 4.5vw, 24px);
  }

  .google img {
    width: clamp(28px, 6vw, 40px);
    height: clamp(28px, 6vw, 40px);
  }

  #contact-us {
    margin-top: clamp(18px, 4.5vw, 24px);
  }
}

/* Very small mobile screens - reduce gap further if needed */
@media (max-width: 360px), (max-height: 500px) {
  .login-right {
    gap: 24px;
  }

  #login-right-form-button {
    width: 150px;
    height: 45px;
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .login-right-form-button {
    margin-top: 18px;
  }

  .google {
    margin-top: 18px;
  }

  .google img {
    width: 28px;
    height: 28px;
  }

  #contact-us {
    margin-top: 18px;
  }
}

/* Footer styling */
#footer {
  position: absolute;
  bottom: 20px;
  left: clamp(16px, 5vw, 100px);
  color: #f9fafb;
  font-size: 10px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -1%;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

#footer .terms {
  opacity: 0.8;
}

#footer a {
  color: inherit;
  text-decoration: underline;
  opacity: 1;
  transition: opacity 0.2s ease;
}

#footer a:hover {
  opacity: 0.8;
}

/* Dark mode footer color override */
@media (prefers-color-scheme: dark) {
  #footer {
    color: #1a1d23;
  }
}

/* Mobile footer styling */
@media (max-width: 480px) {
  #footer {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 24px;
    text-align: center;
    padding: 0 20px;
  }
}

@media (max-height: 600px) {
  .login-right {
    gap: 12px !important;
    padding: 8px 0 !important;
  }
  .login-right-header {
    gap: 4px !important;
  }
  #login-right-title {
    font-size: 22px !important;
    margin-bottom: 0 !important;
  }
  .login-right-form-input-label {
    font-size: 14px !important;
  }
  .login-right-form input {
    font-size: 13px !important;
    padding: 6px 0 6px 4px !important;
  }
  .login-right-form {
    gap: 10px !important;
  }
  .login-right-form-button {
    margin-top: 10px !important;
  }
  #login-right-form-button {
    width: 120px !important;
    height: 38px !important;
    font-size: 13px !important;
    padding: 0 !important;
  }
  .google {
    margin-top: 8px !important;
  }
  .google img {
    width: 22px !important;
    height: 22px !important;
  }
  .feedback-message.show {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
  }
  #contact-us {
    margin-top: 8px !important;
  }
  #contact-us-link {
    font-size: 13px !important;
  }
}
@media (max-height: 600px) {
  .login-right-form-button {
    margin-top: 24px !important;
  }
}

/* NoScript message styling */
noscript div {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* Dark mode noscript message */
@media (prefers-color-scheme: dark) {
  noscript div {
    background: #450a0a !important;
    color: #fca5a5 !important;
    border-bottom-color: #7f1d1d !important;
  }
}
