* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  color: var(--color-text);
  background: var(--color-bg);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem 1rem;
}

.auth-logo img {
  display: block;
  max-width: 215px;
  width: 100%;
}

.auth-card {
  width: min(966px, 100%);
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-card-bg);
  border-radius: 0.938rem;
  overflow: hidden;
  box-shadow: 0 0.625rem 0.938rem rgba(17, 52, 71, 0.07);
}

.auth-hero {
  position: relative;
  background:
    radial-gradient(circle at 25% 95%, rgba(123, 235, 235, 0.42), transparent 50%),
    linear-gradient(165deg, #0A5E64 5%, #007A81 45%, #1C8E93 100%);
  color: #ffffff;
  padding: 3.125rem;
  display: flex;
  flex-direction: column;
}

.auth-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(180deg,
      var(--color-primary-deep),
      var(--traditional-turquoise),
      var(--color-accent));
}

.auth-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px 7px 25px;
  border-radius: 3.125rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--color-accent);
  border-top: 1px solid #45b0bb;
  border-bottom: 1px solid #45b0bb;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  box-shadow: 0 0 0.550rem rgba(0, 0, 0, 0.2);
}

.auth-badge::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 12px;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  border-radius: 5px;
}

.auth-hero-title.MuiTypography-root {
  margin: 1.1rem 0 0;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 2.625rem;
}

.auth-accent-text {
  color: var(--color-accent);
}

.auth-hero-graphic {
  display: block;
  width: 100%;
  max-width: 18.188rem;
  margin: auto auto 0;
}

.auth-panel {
  padding: 2rem 4.813rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-heading.MuiTypography-root {
  margin: 0 0 0.3rem;
  color: var(--color-primary-deep);
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-subtitle.MuiTypography-root {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.auth-form {
  display: grid;
  gap: 0.5rem;
}

.auth-label.MuiTypography-root {
  display: block;
  margin-top: 0.5rem;
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0%;
  color: var(--color-text);
}

.auth-required {
  color: var(--color-required);
  margin-left: 0.15rem;
}

.auth-input {
  margin-top: 0.4rem;
}

.auth-input .MuiOutlinedInput-root {
  background: var(--color-surface);
  border-radius: 0.625rem;
  height: 2.5rem;
  font-size: 0.98rem;

}

.auth-input .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border);
}

.auth-input .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary-deep);
}

.auth-input .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary-deep);
  border-width: 1px;
  box-shadow: 0 0 4px 3px rgba(10, 128, 136, 0.15);

}

.auth-input .MuiInputAdornment-root {
  color: #90a0b1;
}

/* Override the browser's own autofill background (e.g. Chromium/Brave's default highlight on a
   remembered email/password field) so it matches the input's normal white background instead of
   standing out. The long transition-delay is the standard trick for Chromium-based browsers,
   which otherwise flash their own background in first and ignore box-shadow briefly. */
.auth-input .MuiOutlinedInput-root input:-webkit-autofill,
.auth-input .MuiOutlinedInput-root input:-webkit-autofill:hover,
.auth-input .MuiOutlinedInput-root input:-webkit-autofill:focus,
.auth-input .MuiOutlinedInput-root input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-text-user);

  transition: background-color 9999s ease-in-out 0s;
  /* Some Chromium builds also draw their own outline ring around an autofilled field, on top of
     the border MUI already draws via its sibling fieldset — suppress it so only MUI's own border
     (plain, or the teal Mui-focused ring when actually focused) is visible. Deliberately NOT
     touching `border` here — the password field's native <input> toggles `type` between
     'password'/'text' for the eye icon, and overriding its border interacted badly with how
     Chromium re-applies autofill styling across that type change, making the field's border
     disappear entirely after autofill.  */
  outline: none;
}

.auth-input .MuiOutlinedInput-root input:autofill {
  background-color: #ffffff;
}

.error-message {
  margin: 5px 0 0 0;
  font-size: 0.688rem;
  color: var(--color-required);
}

.auth-success-message {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--color-primary-deep);
}

.auth-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-confirmation-icon {
  box-sizing: content-box;
  padding: 0.75rem;
  border-radius: 50%;
  color: var(--color-primary-deep);
  background: rgba(10, 128, 136, 0.12);
  font-size: 2rem !important;
}

.auth-toggle {
  color: var(--santas-gray) !important;
}

.auth-toggle:hover {
  color: var(--color-primary);
  background: transparent !important;
}

.auth-link {
  display: block;
  margin: 0.313rem 0 0 0 !important;
  text-align: right;
  color: var(--apple-green) !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
}

.auth-forgot-password {
  justify-content: end;
  display: flex;
}
 
.auth-back-login{
  justify-content: center;
  display: flex;
}

.auth-link:hover {
  color: var(--color-primary-deep) !important;
}

.auth-link-center {
  text-align: center;
}

.auth-submit.MuiButton-root {
  margin-top: 0.6rem;
  border-radius: 10px;
  background: var(--color-primary-deep);
  color: var(--color-white);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  height: 2.5rem;
  text-transform: none;
}

.auth-submit.MuiButton-root:hover {
  background: #007a81;
  filter: brightness(0.95);
}

.auth-submit.MuiButton-root.auth-submit--active {
  background: linear-gradient(90deg, #007a81 0%, #009da5 50%, #95c11f 100%);
  color: #ffffff;
}

.auth-submit.MuiButton-root.auth-submit--active:hover {
  background: linear-gradient(90deg, #007a81 0%, #009da5 50%, #95c11f 100%);
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-hero {
    padding: 2rem 2rem 1.75rem;
  }

  .auth-hero::after {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 5px;
  }

  .auth-hero-title.MuiTypography-root {
    max-width: none;
  }

  .auth-hero-graphic {
    max-width: 220px;
    margin-top: 1.5rem;
  }

  .auth-panel {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 1.25rem 0.75rem;
    gap: 1.25rem;
  }

  .auth-card {
    border-radius: 16px;
  }

  .auth-hero {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .auth-panel {
    padding: 1.75rem 1.25rem;
  }

  .auth-heading.MuiTypography-root {
    font-size: 1.45rem;
  }
}