:root {
  --ink: #151a2b;
  --ink-soft: rgba(21, 26, 43, 0.62);
  --field-bg: rgba(255, 255, 255, 0.55);
  --field-border: rgba(255, 255, 255, 0.85);
  --field-bg-focus: rgba(255, 255, 255, 0.78);
  --accent: #1f6fe0;
  --accent-2: #4fa6ff;
  --pad-x: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--ink);
}

.stage {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #cdd9e6;
}

.bg-photo {
  position: absolute;
  inset: 0;
  background-image: url("../assets/bluebird.png");
  background-size: cover;
  background-position: center 15%;
}

.bg-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(226, 233, 242, 0.85) 0%,
    rgba(226, 233, 242, 0.55) 28%,
    rgba(226, 233, 242, 0.08) 52%,
    rgba(226, 233, 242, 0) 65%);
}

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 30px var(--pad-x);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.topbar .mark {
  width: 30px; height: 30px;
  display: block;
}

.topbar .name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 24px var(--pad-x);
}

.panel {
  width: 360px;
  max-width: 88vw;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.panel h1 {
  margin: 0 0 30px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

form { display: flex; flex-direction: column; gap: 16px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 7px;
  padding-left: 4px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  border-radius: 999px;
  padding: 13px 18px;
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 8px 20px rgba(20, 30, 50, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pill:focus-within {
  border-color: var(--accent);
  background: var(--field-bg-focus);
}

.pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}

.pill input::placeholder { color: rgba(21,26,43,0.45); }

.form-error {
  margin: 0 0 4px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(217, 83, 79, 0.12);
  border: 1px solid rgba(217, 83, 79, 0.35);
  color: #b3261e;
  font-size: 12.5px;
  font-weight: 600;
}

.btn-entrar[disabled] { opacity: 0.65; cursor: default; }

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
}

.forgot {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 7px;
}

.forgot:hover { color: var(--accent); text-decoration: underline; }

.toggle-pass {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink-soft);
}

.toggle-pass:hover { color: var(--ink); }
.toggle-pass svg { width: 17px; height: 17px; }
.toggle-pass .icon-eye-off { display: none; }
.toggle-pass.is-visible .icon-eye { display: none; }
.toggle-pass.is-visible .icon-eye-off { display: block; }

.btn-entrar {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 14px 28px rgba(31, 111, 224, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-entrar:hover { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(31, 111, 224, 0.44); }
.btn-entrar:active { transform: translateY(0); }

.signup {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-left: 4px;
}

.signup a { color: var(--accent); font-weight: 700; text-decoration: none; }
.signup a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  :root { --pad-x: 24px; }
  .stage { height: auto; min-height: 100dvh; width: 100%; overflow-y: auto; }
  .bg-photo { background-position: 70% 20%; }
  .content { justify-content: center; min-height: 100dvh; padding: 88px var(--pad-x) 32px; }
  .bg-veil {
    background: linear-gradient(180deg,
      rgba(226, 233, 242, 0.82) 0%,
      rgba(226, 233, 242, 0.58) 45%,
      rgba(226, 233, 242, 0.22) 78%,
      rgba(226, 233, 242, 0.08) 100%);
  }
  .panel { width: 100%; }
  .field input { font-size: 16px; }
}
