@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --auth-bg: #eef4fb;
  --auth-surface: #ffffff;
  --auth-text: #132238;
  --auth-muted: #61748d;
  --auth-border: #d8e4f0;
  --auth-brand: #0f766e;
  --auth-brand-2: #0b5c81;
  --auth-accent: #f43f5e;
  --auth-shadow: 0 24px 48px rgba(10, 24, 44, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
}

.auth-body {
  min-height: 100vh;
  color: var(--auth-text);
  background:
    radial-gradient(940px 400px at 100% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(680px 320px at 0% 0%, rgba(14, 165, 233, 0.16), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, var(--auth-bg) 100%);
  padding: 18px;
}

.auth-shell {
  max-width: 1140px;
  margin: 0 auto;
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(9px);
}

.auth-visual {
  position: relative;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(380px 260px at 10% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(160deg, #0d1f37 0%, #0b6f75 58%, #159c91 100%);
  color: #ffffff;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: fit-content;
}

.auth-visual h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.auth-visual p {
  margin-top: 12px;
  max-width: 440px;
  color: rgba(238, 248, 255, 0.92);
  font-size: 15px;
  line-height: 1.65;
}

.auth-visual img {
  width: min(92%, 520px);
  max-height: 370px;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 18px 30px rgba(4, 12, 24, 0.4));
}

.auth-panel {
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
}

.auth-title {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.auth-subtitle {
  margin-top: 10px;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.input-group {
  display: grid;
  gap: 6px;
}

.input-label {
  font-size: 13px;
  font-weight: 700;
  color: #294057;
  letter-spacing: 0.02em;
}

.auth-input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: #ffffff;
  color: var(--auth-text);
  padding: 0 13px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.input-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c4f67;
  font-size: 14px;
  font-weight: 600;
}

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

.auth-link {
  color: var(--auth-brand-2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.auth-button {
  margin-top: 4px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--auth-brand) 0%, var(--auth-brand-2) 100%);
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(11, 92, 129, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 28px rgba(11, 92, 129, 0.34);
}

.auth-button--danger {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  box-shadow: 0 14px 24px rgba(190, 18, 60, 0.3);
}

.auth-footer {
  margin-top: 12px;
  color: #506680;
  font-size: 14px;
  text-align: center;
}

.invalid-feedback {
  color: #be123c;
  font-size: 13px;
  font-weight: 700;
}

.auth-note {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #5b6f86;
  border: 1px solid #dbe7f3;
  background: #f7fbff;
  line-height: 1.5;
}

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

  .auth-visual {
    padding: 24px 20px 16px;
  }

  .auth-visual img {
    width: min(86%, 420px);
    max-height: 250px;
    margin-top: 10px;
  }

  .auth-panel {
    padding: 24px 18px 26px;
  }
}

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

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