.auth-banner {
  width: 100%;
  min-height: 200px;
  max-height: 280px;
  overflow: hidden;
  background: #ececec;
  line-height: 0;
}

.auth-banner-img {
  width: 100%;
  height: clamp(200px, 28vw, 280px);
  min-height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.auth-nav-active {
  opacity: 1;
  font-weight: 600;
}

.auth-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  background: #fff;
}

.auth-page .container {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.auth-page--wide .auth-card {
  max-width: 720px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0a0a0a;
}

.auth-card .auth-lead {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: #5c5c5c;
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0a0a0a;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #0a0a0a;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.auth-input.is-invalid {
  border-color: #c62828;
}

.auth-input.is-valid {
  border-color: #2e7d32;
}

.auth-field-error {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #c62828;
}

.auth-field-error.show {
  display: block;
}

.auth-toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5c5c5c;
  background: none;
  border: none;
  cursor: pointer;
}

.auth-toggle-pw:hover {
  color: #0a0a0a;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #5c5c5c;
  cursor: pointer;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #0a0a0a;
}

.auth-link {
  color: #0a0a0a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link:hover {
  opacity: 0.7;
}

.auth-submit {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #0a0a0a;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.auth-submit:hover:not(:disabled) {
  background: #262626;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-footer-text {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: #5c5c5c;
}

.auth-alert {
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.auth-alert-warning {
  background: #fff8e6;
  color: #8a6100;
  border: 1px solid #ffe082;
}

.auth-alert-error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

.auth-alert-success {
  background: #f1f8e9;
  color: #33691e;
  border: 1px solid #c5e1a5;
}

.auth-grid {
  display: grid;
  gap: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .auth-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-grid-full {
    grid-column: 1 / -1;
  }
}

.auth-file-label {
  display: block;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #5c5c5c;
  background: #fafafa;
  border: 1px dashed #bdbdbd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.auth-file-label:hover {
  border-color: #0a0a0a;
  background: #f5f5f5;
}

.auth-file-label.has-file {
  border-color: #2e7d32;
  background: #f1f8e9;
  color: #1b5e20;
}

.auth-file-name {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #2e7d32;
}

.auth-strength {
  margin-top: 0.5rem;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.auth-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s, background 0.3s;
}

.auth-strength-bar.weak {
  width: 33%;
  background: #c62828;
}

.auth-strength-bar.medium {
  width: 66%;
  background: #f57c00;
}

.auth-strength-bar.strong {
  width: 100%;
  background: #2e7d32;
}

@media (max-width: 767px) {
  .auth-page {
    padding: 1.25rem 0.75rem 3rem;
  }

  .auth-card h1 {
    font-size: 1.5rem;
  }

  .auth-banner-img {
    height: clamp(160px, 40vw, 220px);
    min-height: 160px;
  }

  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
