* {
  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: 15px;
  overflow: hidden;
  box-shadow: 0 20px 42px rgba(17, 52, 71, 0.18);
}

.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: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.auth-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 7px;
  background:
    radial-gradient(circle at 25% 95%, rgba(123, 235, 235, 0.42), transparent 50%),
    linear-gradient(165deg, #007A81 5%, #0a8c98 45%, #95C11F 100%);
}

.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;
}

.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: 1.15;
}

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

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

.auth-panel {
  padding: 2rem 4.188rem;
  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: 10px;
  height: 40px;
  font-size: 0.98rem;
  border: 1px solid #98A2B3;
}

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

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

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

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

.error-message {
  margin: 0.35rem 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-toggle {
  color: #6f8294;
}

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

.auth-link {
  display: block;
  margin: 0.4rem 0 0.4rem;
  text-align: right;
  color: #81B200 !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
}

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

.auth-submit.MuiButton-root {
  margin-top: 0.6rem;
  border-radius: 10px;
  background: #007a81;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  height: 40px;
  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;
  }
}
