/* styles.css */
:root {
  --c1: #142850;
  --c2: #27496d;
  --c3: #0c7b93;
  --c4: #00a8cc;
  --txt: rgba(255, 255, 255, 0.92);
  --mut: rgba(255, 255, 255, 0.7);
  --mut2: rgba(255, 255, 255, 0.55);
  --err: #ff5252;
  --ok: #2ee59d;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --r: 16px;
  --r2: 12px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: radial-gradient(
      1200px 700px at 50% 20%,
      rgba(0, 168, 204, 0.2),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 20% 80%,
      rgba(12, 123, 147, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, var(--c1), #0f1f3a);
  color: var(--txt);
}
.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: min(460px, 92vw);
  background: linear-gradient(
    180deg,
    rgba(39, 73, 109, 0.62),
    rgba(20, 40, 80, 0.72)
  );
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.card:before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: radial-gradient(
    600px 220px at 50% 0%,
    rgba(0, 168, 204, 0.22),
    transparent 62%
  );
  opacity: 0.9;
}
.brand {
  display: flex;
  justify-content: center;
  margin: 2px 0 14px;
  position: relative;
  z-index: 1;
}
.logo {
  width: min(340px, 78%);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
.title {
  margin: 6px 0 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.sub {
  margin: 0 0 16px;
  color: var(--mut);
  text-align: center;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-size: 12px;
  color: var(--mut);
}
input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--r2);
  background: var(--glass);
  padding: 12px 12px;
  color: var(--txt);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
input:focus {
  border-color: rgba(0, 168, 204, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.14);
  background: rgba(255, 255, 255, 0.075);
}
.pw {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border-radius: var(--r2);
  border: 1px solid transparent;
  padding: 0 8px 0 0;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.pw:focus-within {
  border-color: rgba(0, 168, 204, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.14);
  background: rgba(255, 255, 255, 0.075);
}
.pw input {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 12px 12px;
}
.pwBtn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.pwBtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mut);
  user-select: none;
}
.chk input {
  width: 16px;
  height: 16px;
  accent-color: var(--c4);
}
.link {
  font-size: 12px;
  color: rgba(0, 168, 204, 0.95);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--c3), #0b6a7f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.08s, filter 0.15s, box-shadow 0.15s;
}
.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 22px rgba(12, 123, 147, 0.22);
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--txt);
}
.btn.secondary:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.btnSpin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  display: none;
  animation: spin 0.9s linear infinite;
}
.loading .btnSpin {
  display: inline-block;
}
.loading .btnText {
  opacity: 0.9;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.msg {
  min-height: 18px;
  font-size: 12px;
  color: var(--mut2);
  margin-top: 2px;
}
.msg.err {
  color: var(--err);
}
.msg.ok {
  color: var(--ok);
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
}
.fine {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 1;
}
@media (max-width: 420px) {
  .card {
    padding: 22px 18px;
  }
  .logo {
    width: min(320px, 84%);
  }
}
