body,
html {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: 100%;
}

.container {
  display: flex;
  min-height: 100vh;
}

.registration-page {
  min-height: 100vh;
  overflow-y: auto;
}

.registration-page .container {
  min-height: auto;
}

.left-panel {
  flex: 1;
  background: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  box-sizing: border-box;
}

.right-panel {
  flex: 1;
  background: var(--ls-navyblue-50);
  display: flex;
  justify-content: center;
  align-items: center;
}

.right-panel img {
  max-width: 300px;
}

.logo {
  margin-bottom: 20px;
  height: 30px;
}

h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.logo-link {
  display: inline-block;
  width: 18rem;
  height: 4rem;
  background: url("/static/img/ls_logo.svg") no-repeat center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
}

.subtitle {
  color: var(--footer-text);
  margin-bottom: 24px;
}

.tab-buttons {
  display: flex;
  background: var(--ls-navyblue-50);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  width: fit-content;
  padding: 2px;
  min-height: fit-content;
}

.tab-buttons button {
  border: none;
  background: transparent;
  padding: 10px 28px;
  cursor: pointer;
  font-weight: 500;
  color: var(--footer-text);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.tab-buttons button.active {
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.input-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 16px;
}

.input-group input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.primary-btn {
  width: 100%;
  padding: 1rem;
  background: var(--link);
  color: white;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}

.alt-login {
  text-align: center;
  width: 50%;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.icon-row img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: white;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.footer-text {
  margin-top: 40px;
  font-size: 1rem;
  color: var(--footer-text);
  text-align: center;
  max-width: 50%;
  line-height: 1.5;
}

.hero-image {
  background-image: url("../../static/img/hero.png");
  background-repeat: no-repeat;
  background-position: left;
  background-size: cover;
}

h3 {
  font-weight: 400;
}

form {
  width: 50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

label {
  text-align: left;
  padding-bottom: 0.5rem;
}

.email-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.8rem 1.4rem 0.6rem;
  width: 100%;
  box-sizing: border-box;
  gap: 1rem;
}

.email-icon img,
.checkmark-icon img {
  width: 20px;
  height: 20px;
}

.email-field-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.email-field-group label {
  font-size: 12px;
  color: var(--footer-text);
  margin-bottom: 2px;
}

.email-field-group input {
  border: none;
  outline: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0;
}

.floating-label-group {
  position: relative;
  width: 100%;
  max-width: 400px;
  flex: 1;
  padding-left: 1rem;
}

.floating-label-group input {
  width: 100%;
  padding-top: 1.2rem;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: bold;
  background: transparent;
}

.floating-label-group input:-webkit-autofill,
.floating-label-group input:-webkit-autofill:hover,
.floating-label-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
  transition: background-color 9999s ease-out;
}

.floating-label-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--footer-text);
  pointer-events: none;
  transition: 0.2s ease all;
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label {
  top: 0.2rem;
  font-size: 11px;
  background: white;
  padding: 0 0.2rem;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .right-panel {
    display: none;
  }

  .left-panel {
    flex: none;
    width: 100%;
    padding: 1.5rem;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
  }

  .alt-login {
    width: 100%;
  }

  form {
    width: 100%;
  }

  .tab-buttons {
    justify-content: center;
  }

  .email-input-wrapper {
    max-width: 100%;
    padding: 0.8rem 1rem;
  }

  .floating-label-group {
    max-width: 100%;
    padding-left: 0.8rem;
  }

  .primary-btn {
    max-width: 100%;
    font-size: 1rem;
    padding: 0.8rem;
  }

  .footer-text {
    margin-top: auto;
    max-width: 100%;
    font-size: 11px;
  }

  .icon-row {
    gap: 12px;
  }

  .icon-row img {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
}

.icon-button-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--ls-navyblue-50);
  color: var(--text-primary);
  transition: background 0.2s;
  min-width: 240px;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.social-button:hover {
  background: var(--ls-navyblue-100);
}

.social-button img {
  width: 24px;
  height: 24px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--footer-text);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 1rem;
  width: 100%;
  gap: 1rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.primary-btn:disabled {
  background: var(--ls-navyblue-200);
  cursor: not-allowed;
  opacity: 0.7;
}

.floating-label-group .registration-input {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
}

.floating-label-group .registration-input:focus {
  border: 2px solid var(--ls-aquagreen-700);
  outline: none;
  background-color: #ffffff;
}

.floating-label-group .registration-input + label {
  left: 1.8rem;
  background: white;
  padding: 0;
}

.floating-label-group .registration-input input:focus + label,
.floating-label-group .registration-input input:not(:placeholder-shown) + label {
  top: 0.2rem;
  font-size: 11px;
  background: white;
  padding: 0 0.2rem;
  transform: translateY(-100%);
}

.registration-page .floating-label-group {
  padding-left: 0;
}

.registration-page .floating-label-group input:focus + label,
.registration-page .floating-label-group input:not(:placeholder-shown) + label {
  top: -0.8rem;
  padding: 0.4rem;
}

#password-wrapper {
  width: 100%;
  display: none;
  transition: all 0.3s ease;
}

.forgot-password-link {
  background: none;
  border: none;
  color: var(--link);
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  padding: 0;
  margin-top: -0.25rem;
}

.forgot-password-link:hover {
  text-decoration: underline;
}
