/* JC SISTEMA | Neve Mineral | Apenas a identidade visual do login */
:root {
  --background: #e9efee;
  --background-light: #f7faf9;
  --card: #ffffff;
  --field: #f7faf9;
  --line: #d8e4e0;
  --ink: #16322f;
  --muted: #647873;
  --accent: #166b5d;
  --accent-hover: #11584d;
  --focus: #1d8776;
  --error: #ab2f32;
  color-scheme: light;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  margin: 0;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(15px, 4vw, 36px);
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, var(--background), var(--background-light));
  overflow-x: hidden;
}
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
body::before {
  width: min(650px, 80vw);
  height: min(650px, 80vw);
  top: -230px;
  left: -210px;
  background: radial-gradient(circle, #cce6dd 0%, transparent 69%);
  opacity: 0.72;
}
body::after {
  width: min(700px, 85vw);
  height: min(700px, 85vw);
  bottom: -315px;
  right: -190px;
  background: radial-gradient(circle, #d7ebe7 0%, transparent 68%);
  opacity: 0.68;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.login-card {
  position: relative;
  width: min(530px, 100%);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow:
    0 30px 90px #0a30231e,
    0 3px 12px #0a302310;
}
.login-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #115e51, #64d7bb, #a7e4d6);
}
.card-content {
  padding: 40px 48px 31px;
}
.intro {
  text-align: center;
}
.logo {
  display: block;
  width: 192px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 640/476;
  object-fit: contain;
  margin: -12px auto 3px;
  filter: drop-shadow(0 5px 8px #00a89617);
}
h1 {
  font-size: clamp(26px, 3vw, 30px);
  line-height: 1.17;
  letter-spacing: -0.045em;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 9px auto 32px;
  max-width: 320px;
}
label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 9px;
}
.field {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 12px;
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px #1d877625;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.field input:focus-visible {
  outline: none;
}
.field select:focus-visible {
  outline: none;
}
#generatePassword {
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
  background: var(--field);
}
#handoffNote,
#generatedNote {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#availability,
#codeNote {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.field input::placeholder {
  color: #718580;
  opacity: 1;
}
.field button {
  min-width: 83px;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.field button:hover {
  background: #eaf4ef;
}
.submit {
  display: block;
  width: 100%;
  min-height: 53px;
  margin-top: 16px;
  padding: 13px 18px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.submit::after {
  content: '→';
  font-size: 18px;
  line-height: 0;
  margin-left: 11px;
  vertical-align: -1px;
}
.submit:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.submit:disabled::after {
  content: '';
}
#message {
  min-height: 18px;
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--error);
}
.status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 21px;
  color: #607772;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #37b595;
  box-shadow: 0 0 0 4px #37b59520;
}
.separator {
  color: #607772;
}
@media (max-width: 560px) {
  body {
    padding: 14px;
  }
  .login-card {
    max-width: 440px;
    border-radius: 21px;
  }
  .card-content {
    padding: 25px 24px 24px;
  }
  .logo {
    width: 164px;
    margin: -10px auto 4px;
  }
  h1 {
    font-size: 27px;
  }
  .subtitle {
    margin-bottom: 26px;
  }
  .status {
    font-size: 9px;
    gap: 6px;
    letter-spacing: 0.08em;
  }
}
@media (max-height: 610px) {
  body {
    place-items: start center;
  }
  .login-card {
    margin: auto 0;
  }
  .card-content {
    padding-top: 19px;
    padding-bottom: 20px;
  }
  .logo {
    width: 136px;
  }
  .subtitle {
    margin-bottom: 18px;
  }
  .status {
    padding-top: 14px;
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}
form label:not(:first-child) {
  margin-top: 17px;
}
.links {
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.links a,
a {
  color: var(--accent);
}
section p {
  font-size: 13px;
  line-height: 1.6;
}
#result {
  margin-top: 24px;
}
#hash {
  font-family: monospace;
}
