/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.12),
      transparent 26%
    ),
    radial-gradient(
      circle at top right,
      rgba(245, 158, 11, 0.12),
      transparent 22%
    ),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 52%, #edf2f7 100%);
  color: #0f172a;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(22, 163, 74, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(245, 158, 11, 0.12),
      transparent 28%
    ),
    linear-gradient(135deg, #fffbeb 0%, #f8fafc 36%, #fefce8 100%);
}

.auth-shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 10px auto;
  padding: 5% 0;
  flex: 1 0 auto;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 520px);
  gap: 26px;
  align-items: stretch;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  border-radius: 34px;
  padding: 34px;
  background:
    linear-gradient(
      180deg,
      rgba(16, 24, 40, 0.18) 0%,
      rgba(16, 24, 40, 0.48) 100%
    ),
    url("/img/banner-1.jpg") center/cover no-repeat;
  color: #fffdf5;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 47, 73, 0.1) 0%,
    rgba(22, 101, 52, 0.16) 42%,
    rgba(120, 53, 15, 0.32) 100%
  );
  pointer-events: none;
}

.auth-hero-brand {
  position: relative;
  z-index: 1;
}

.auth-hero-brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-hero-logo {
  width: clamp(116px, 18vw, 168px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.26));
}

.auth-hero-copy {
  display: grid;
  gap: 10px;
}

.auth-hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.auth-hero-title {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  text-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.auth-hero-subtitle {
  margin: 0;
  font-size: 25px;
  line-height: 1.5;
  color: rgba(255, 252, 235, 0.94);
}

.auth-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: 34px;
  padding: 34px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.auth-card-login {
  min-height: 680px;
}

.auth-card-shell {
  display: grid;
  gap: 22px;
  height: 100%;
  align-content: center;
}

.auth-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-card-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.auth-card-head h2 {
  font-size: 42px;
  color: #111827;
  margin-bottom: 8px;
}

.auth-card-subtitle {
  color: #64748b;
  line-height: 1.55;
  font-size: 16px;
}

.auth-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #15803d;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-field-label {
  color: #334155;
  font-weight: 700;
  font-size: 16px;
}

.auth-form input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #d0d7e2;
  border-radius: 18px;
  background: #ffffff;
  font-size: 16px;
}

.auth-form input::placeholder {
  color: #94a3b8;
}

.auth-field-help {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.auth-submit,
.auth-link-btn {
  min-height: 54px;
}

.auth-secondary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.auth-inline-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-panel-preview {
  grid-template-columns: minmax(0, 0.8fr) minmax(620px, 1.2fr);
}

.auth-preview-card {
  min-height: 680px;
}

.auth-preview-shell {
  align-content: stretch;
}

.auth-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-preview-frame-shell {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-preview-frame {
  width: 100%;
  height: 760px;
  border: 0;
  display: block;
  background: #ffffff;
}

.auth-text-link {
  color: #15803d;
  font-weight: 700;
  text-decoration: none;
}

.auth-text-link:hover {
  color: #166534;
  text-decoration: underline;
}

.alert {
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
}

.alert.error {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

.alert.success {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.alert.warning {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.auth-page {
  display: flex;
  flex-direction: column;
}

.auth-footer {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96) 0%, rgba(55, 31, 18, 0.94) 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.auth-footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.auth-footer-line a {
  color: #fbbf24;
  text-decoration: none;
}

.auth-footer-line a:hover {
  color: #fde68a;
}

@media (max-width: 980px) {
  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-panel-preview {
    grid-template-columns: 1fr;
  }

  .auth-hero,
  .auth-card-login,
  .auth-preview-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    width: min(100vw - 20px, 1220px);
    padding: 10px 0 22px;
  }

  .auth-footer {
    width: min(100vw - 20px, 1220px);
    margin-bottom: 12px;
    padding: 12px 14px;
  }

  .auth-hero,
  .auth-card {
    border-radius: 24px;
    padding: 22px;
  }

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

  .auth-hero-logo {
    width: 110px;
  }

  .auth-card-head h2 {
    font-size: 34px;
  }

  .auth-field-topline,
  .auth-inline-links,
  .auth-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-secondary-actions {
    justify-content: flex-start;
  }

  .auth-preview-frame {
    height: 680px;
  }
}
