@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --forest: #101a12;
  --forest-2: #17251a;
  --ink: #10110f;
  --muted: #666b64;
  --lavender: #c5c6dc;
  --page: #e2e2eb;
  --white: #ffffff;
  --line: rgba(16,26,18,.15);
  --accent: #293cff;
  --danger: #bd3737;
  --success: #237b4b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-side {
  min-height: 100vh;
  padding: 45px 7%;
  background: var(--forest);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: white;
  text-decoration: none;
}

.auth-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.auth-brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
}

.auth-brand-name span {
  color: var(--lavender);
}

.auth-side-content {
  max-width: 500px;
  margin: auto 0;
}

.auth-side-label {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--lavender);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.auth-side-content h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.auth-side-content p {
  max-width: 390px;
  margin-top: 24px;
  color: rgba(255,255,255,.67);
  font-size: 15px;
  line-height: 1.9;
}

.auth-side-footer {
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.auth-main {
  min-height: 100vh;
  padding: 45px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page);
}

.auth-content {
  width: 100%;
  max-width: 440px;
}

.mobile-brand {
  display: none;
}

.auth-back {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}

.auth-back:hover {
  color: var(--forest);
}

.auth-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.auth-content h1 {
  margin: 0;
  color: var(--forest);
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 45px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
}

.auth-description {
  margin: 15px 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.auth-form .field {
  margin-bottom: 21px;
}

.auth-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 25px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.auth-form input::placeholder {
  color: #9a9c96;
}

.auth-form input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(16,26,18,.07);
}

.auth-options {
  display: flex;
  justify-content: flex-end;
  margin: -7px 0 23px;
}

.auth-options a {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.auth-options a:hover,
.auth-footer a:hover {
  text-decoration: underline;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 5px;
  border: 0;
  border-radius: 25px;
  background: var(--forest);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.primary-button:hover:not(:disabled) {
  background: var(--forest-2);
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.auth-message {
  display: none;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.auth-message.error {
  display: block;
  border: 1px solid rgba(189,55,55,.2);
  background: rgba(189,55,55,.07);
  color: var(--danger);
}

.auth-message.success {
  display: block;
  border: 1px solid rgba(35,123,75,.2);
  background: rgba(35,123,75,.07);
  color: var(--success);
}

.auth-footer {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-footer a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.auth-bottom-link {
  display: block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.auth-bottom-link:hover {
  color: var(--forest);
}

@media (max-width: 800px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }

  .auth-main {
    padding: 35px 24px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    color: var(--forest);
    text-decoration: none;
  }

  .mobile-brand img {
    width: 43px;
    height: 43px;
    object-fit: contain;
    border-radius: 50%;
  }

  .mobile-brand strong {
    font-size: 21px;
    letter-spacing: -1px;
  }

  .mobile-brand strong span {
    color: var(--accent);
  }

  .auth-back {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .auth-main {
    padding: 25px 21px;
  }

  .auth-content h1 {
    font-size: 35px;
  }

  .auth-description {
    margin-bottom: 26px;
  }
}