* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

:root {
  --teal: #1f98a8;
  --teal-dark: #177f8d;
  --text: #27445a;
  --muted: #6b7c87;
  --line: #dfe9ee;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 48px rgba(31, 61, 90, 0.15);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 182, 0.38), transparent 18%),
    radial-gradient(circle at bottom right, rgba(123, 215, 224, 0.2), transparent 22%),
    linear-gradient(180deg, #fbfefe 0%, #f3f9fb 100%);
  color: var(--text);
}

.auth-page {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.auth-ornament {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.22;
}

.ornament-1 {
  width: 180px;
  height: 180px;
  background: #f6c2a1;
  top: -60px;
  left: -60px;
}

.ornament-2 {
  width: 140px;
  height: 140px;
  background: #7fd5df;
  bottom: -45px;
  right: -40px;
}

.auth-shell {
  width: min(1080px, 100%);
  height: min(620px, calc(100vh - 28px));
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  background:
    url("../img/auth-bg.jpg") center/cover no-repeat,
    linear-gradient(135deg, #f3fbfd 0%, #eaf7fa 100%);
  min-height: 0;
}

.auth-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.50) 45%, rgba(255,255,255,0.08) 100%);
}

.auth-hero__content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

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

.auth-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.auth-brand h1 {
  font-size: 1.55rem;
  color: var(--teal);
  font-weight: 900;
  line-height: 1;
}

.auth-brand p {
  color: #526772;
  font-size: 0.82rem;
  margin-top: 3px;
}

.auth-hero h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  line-height: 1.12;
  color: #153d5e;
  margin-bottom: 12px;
  font-weight: 800;
  max-width: 420px;
}

.auth-hero p {
  max-width: 460px;
  color: #4c6170;
  line-height: 1.6;
  font-size: 0.96rem;
}

.auth-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 14px;
  background: linear-gradient(135deg, var(--teal), #2aa8b9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(31, 152, 168, 0.2);
}

.auth-note {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 420px;
}

.auth-note span {
  color: #f08b69;
  margin-top: 2px;
}

.auth-note p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4b6170;
}

.auth-panel {
  background: rgba(255,255,255,0.96);
  padding: 26px;
  display: flex;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

.auth-card {
  width: 100%;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #edf7f9;
  border-radius: 14px;
  padding: 5px;
  gap: 5px;
  margin-bottom: 14px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: #5d7380;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--teal), #2aa8b9);
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 152, 168, 0.18);
}

.auth-title {
  margin-bottom: 12px;
}

.auth-title h3 {
  color: #183c5c;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.auth-title p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.auth-form {
  display: none;
  animation: fadeUp 0.25s ease;
}

.auth-form.active {
  display: block;
}

.input-field {
  position: relative;
  margin-bottom: 12px;
}

.input-field input {
  width: 100%;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  color: #223647;
  font-size: 0.92rem;
  transition: 0.25s ease;
}

.input-field label {
  position: absolute;
  left: 14px;
  top: 13px;
  color: #7a8a94;
  font-size: 0.9rem;
  pointer-events: none;
  transition: 0.2s ease;
}

.input-field input:focus {
  border-color: rgba(31, 152, 168, 0.6);
  box-shadow: 0 0 0 4px rgba(31, 152, 168, 0.08);
}

.input-field input:focus + label,
.input-field input:valid + label {
  top: -8px;
  left: 10px;
  background: #fff;
  padding: 0 6px;
  font-size: 0.75rem;
  color: var(--teal);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5d6e79;
  font-size: 0.88rem;
}

.auth-row a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.auth-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--teal), #28a7b5);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(31, 152, 168, 0.2);
}

.auth-footer {
  margin-top: 12px;
  text-align: center;
  color: #60707a;
  font-size: 0.88rem;
}

.auth-footer span {
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  html,
  body {
    overflow: hidden;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
    height: min(100vh - 28px, 100dvh - 28px);
  }

  .auth-hero {
    min-height: 220px;
    padding: 22px;
  }

  .auth-title h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 560px) {
  .auth-page {
    padding: 10px;
  }

  .auth-shell {
    width: 100%;
    height: 100dvh;
    border-radius: 20px;
  }

  .auth-hero {
    padding: 18px;
    min-height: 180px;
  }

  .auth-panel {
    padding: 18px;
  }

  .auth-brand img {
    width: 48px;
    height: 48px;
  }

  .auth-brand h1 {
    font-size: 1.35rem;
  }

  .auth-hero h2 {
    font-size: 1.5rem;
  }

  .auth-hero p {
    font-size: 0.9rem;
  }
}