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

:root {
  --ink: #082a3d;
  --muted: #627783;
  --accent: #17618a;
  --accent-hover: #0d4d70;
  --lime: #a8ee00;
  --line: #d9e4e7;
  --danger: #b44135;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(168, 238, 0, 0.1), transparent 32%),
    linear-gradient(145deg, #f7fafb, #e9f1f4);
  font-family: "Manrope", sans-serif;
}

.auth-shell {
  width: min(1020px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(6, 38, 56, 0.14);
}

.auth-story {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  padding: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(168, 238, 0, 0.12), transparent 19rem),
    #062638;
}

.auth-brand img {
  display: block;
  width: 190px;
  height: auto;
}

.auth-story h2 {
  margin: auto 0 12px;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-story p {
  color: #b8ced5;
  line-height: 1.6;
}
.auth-story small {
  color: #85a2ac;
}
.auth-form {
  display: grid;
  align-content: center;
  padding: 56px;
}
.auth-form::before {
  content: "";
  display: none;
  width: 190px;
  height: 42px;
  margin-bottom: 34px;
  background: url("./assets/brand/nisphere-logo-color.webp") center / contain
    no-repeat;
}
.auth-form > p:first-child {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-form h1 {
  margin: 8px 0 10px;
  font-size: 2.3rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.auth-form .support {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.5;
}
.auth-form form {
  display: grid;
  gap: 15px;
}
.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
}
.auth-form input {
  width: 100%;
  padding: 13px;
  border: 1px solid #c7d7dc;
  border-radius: 11px;
  background: #fbfcfd;
  font: inherit;
  outline: 0;
}
.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 238, 0, 0.22);
}
.password-rules {
  padding: 12px;
  border-radius: 10px;
  color: var(--muted);
  background: #eff5f7;
  font-size: 0.72rem;
}
.auth-primary {
  padding: 13px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font:
    700 0.9rem "Manrope",
    sans-serif;
  cursor: pointer;
}
.auth-primary:hover {
  background: var(--accent-hover);
}
.auth-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 0.78rem;
}
.auth-feedback.success { color: #17618a; }
.auth-back-link { color: var(--accent); font-size: .82rem; font-weight: 700; text-align: center; text-decoration: none; }
.auth-back-link:hover { text-decoration: underline; }
.auth-success {
  display: grid;
  gap: 15px;
  padding: 20px;
  border-radius: 13px;
  color: #145275;
  background: #e5f2f7;
}
.auth-success a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    min-height: 560px;
    padding: 34px 24px;
  }
  .auth-form::before {
    display: block;
  }
}
