@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/oxanium-latin.woff2") format("woff2");
}

:root {
  --primary: #1EA6B8;
  --primary-bright: #2BC3D6;
  --secondary: #8B5CF6;
  --indigo: #4F46E5;
  --text: #0F172A;
  --muted: rgba(15, 23, 42, 0.66);
  --subtle: rgba(15, 23, 42, 0.52);
  --ring: rgba(30, 166, 184, 0.22);
  --panel-border: rgba(255, 255, 255, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
}

.auth-page {
  position: relative;
  overflow: hidden;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Base photo background */
.auth-page::before {
  background: url("../images/signin.jpg") center center / cover no-repeat;
  transform: scale(1.06);
  filter: brightness(0.46) saturate(1.18) contrast(1.04) blur(1.4px);
}

/* Readability overlay + subtle brand glow */
.auth-page::after {
  background:
    radial-gradient(120% 120% at 50% 110%, rgba(2, 6, 23, 0.84) 0%, rgba(2, 6, 23, 0.18) 56%, rgba(2, 6, 23, 0.72) 100%),
    linear-gradient(115deg, rgba(2, 6, 23, 0.72) 0%, rgba(2, 6, 23, 0.42) 52%, rgba(2, 6, 23, 0.24) 100%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-mobile-downloads {
  position: fixed;
  left: clamp(18px, 3.4vw, 46px);
  bottom: clamp(18px, 3.2vw, 40px);
  z-index: 2;
  display: grid;
  gap: 10px;
  pointer-events: auto;
}

.auth-mobile-downloads__copy {
  margin: 0;
  font-family: "Oxanium", "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 6px 18px rgba(2, 6, 23, 0.44);
}

.auth-mobile-downloads__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-mobile-store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 18px rgba(2, 6, 23, 0.4);
  transition: color 0.16s ease, transform 0.16s ease;
}

.auth-mobile-store-link .icon,
.auth-mobile-store-link .lucide,
.auth-mobile-store-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.auth-mobile-store-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.auth-mobile-store-link:focus-visible {
  outline: none;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.glass-panel {
  width: min(440px, 100%);
  border-radius: 22px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 249, 252, 0.76) 100%);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    0 32px 72px rgba(2, 6, 23, 0.34),
    0 12px 30px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 166, 184, 0.18) 0%, rgba(30, 166, 184, 0.74) 48%, rgba(30, 166, 184, 0.18) 100%);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-family: "Oxanium", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: "Oxanium", "Inter", sans-serif;
}

.auth-panel-header {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.auth-heading {
  margin: 0;
  font-family: "Oxanium", "Inter", sans-serif;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.auth-subheading {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.7);
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Oxanium", "Inter", sans-serif;
}

.lead {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  background: rgba(139, 92, 246, 0.08);
  color: #5b21b6;
  font-size: 11px;
  font-weight: 600;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.auth-form {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.52);
}

.field-control {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 23, 42, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.field-icon .lucide,
.field-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.field-control input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 0 40px 0 38px;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.field-control input::placeholder {
  color: rgba(15, 23, 42, 0.42);
}

.field-control input:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring), 0 10px 22px rgba(2, 6, 23, 0.12);
  background: #ffffff;
  transform: none;
}

.field-control input:focus-visible + .field-action,
.field-control:focus-within .field-icon {
  color: var(--primary);
}

.field-action {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(15, 23, 42, 0.56);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.field-action .lucide,
.field-action svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.field-action:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.field-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.auth-cta {
  margin-top: 6px;
  height: 48px;
  width: 100%;
  border: 1px solid #1493a5;
  border-radius: 13px;
  background: linear-gradient(140deg, #23b8cb 0%, #1598ab 55%, #0f8394 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(16, 131, 148, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  display: grid;
  grid-template-columns: 16px 1fr 16px;
  align-items: center;
  transition: box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
}

.auth-cta::before {
  content: "";
  width: 16px;
  height: 16px;
}

.auth-cta:hover {
  background: linear-gradient(140deg, #29c2d6 0%, #16a0b4 56%, #118999 100%);
  border-color: #118999;
  box-shadow:
    0 18px 36px rgba(16, 131, 148, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  filter: saturate(1.04);
}

.auth-cta:active {
  background: linear-gradient(140deg, #18aabc 0%, #138ea0 56%, #0e7583 100%);
  box-shadow:
    0 9px 18px rgba(16, 131, 148, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-cta__label {
  grid-column: 2;
  justify-self: center;
  line-height: 1;
}

.auth-cta__icon,
.auth-cta__icon.lucide,
.auth-cta__icon svg {
  grid-column: 3;
  justify-self: end;
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
  animation: authCtaArrowShift 1.2s ease-in-out infinite;
}

@keyframes authCtaArrowShift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(3px);
  }
}

.auth-links {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.auth-links--inline {
  gap: 8px;
}

.auth-links__sep {
  color: rgba(15, 23, 42, 0.44);
}

.glass-panel--login {
  width: min(460px, 100%);
  padding: 34px 36px 30px;
}

.glass-panel--login .brand {
  width: 100%;
  justify-content: center;
  margin-bottom: 22px;
}

.glass-panel--login .brand img {
  width: 128px;
  height: 128px;
}

.glass-panel--login .auth-form {
  margin-top: 0;
  gap: 14px;
}

.glass-panel--login .auth-panel-header {
  text-align: center;
  margin-bottom: 16px;
}

.glass-panel--login .field {
  gap: 8px;
}

.glass-panel--login .auth-links {
  margin-top: 14px;
}

.glass-panel--maintenance {
  width: min(460px, 100%);
  padding: 48px 42px 96px;
  display: grid;
  justify-items: center;
  align-content: center;
  row-gap: 22px;
}

.glass-panel--maintenance .brand {
  width: 100%;
  justify-content: center;
  margin: 0;
}

.glass-panel--maintenance .brand img {
  width: 112px;
  height: 112px;
}

.maintenance-title {
  margin: 0;
  width: min(360px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.maintenance-title .line-main {
  display: block;
  width: 100%;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  font-family: "Oxanium", "Inter", sans-serif;
}

.maintenance-title .line-sub {
  display: block;
  width: 100%;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.115em;
  color: rgba(15, 23, 42, 0.56);
  font-family: "Oxanium", "Inter", sans-serif;
}

.auth-links a {
  color: #138ea0;
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  color: #0f7584;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.timer-wrap {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.timer-label {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
}

.timer-value {
  margin: 0;
  font-family: "Oxanium", "Inter", sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.maintenance-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 400;
  color: var(--subtle);
}

.auth-feedback {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.45;
}

.auth-feedback--error {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 226, 226, 0.84);
}

.auth-feedback--success {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(220, 252, 231, 0.82);
}

.auth-feedback--muted {
  color: rgba(15, 23, 42, 0.76);
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(241, 245, 249, 0.82);
}

.auth-passkey-box {
  display: grid;
  gap: 12px;
}

.auth-passkey-box .auth-feedback {
  margin-bottom: 0;
}

.glass-panel--reset {
  width: min(520px, 100%);
  padding: 34px 36px 30px;
}

.glass-panel--reset .brand {
  width: 100%;
  justify-content: center;
  margin-bottom: 18px;
}

.glass-panel--reset .brand img {
  width: 96px;
  height: 96px;
}

.glass-panel--reset .auth-panel-header {
  text-align: center;
  margin-bottom: 18px;
}

.glass-panel--reset .auth-links {
  justify-content: center;
}

.auth-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 2px;
}

.auth-method {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.74);
  min-height: 44px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.74);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.auth-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-method__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  transition: background-color 0.16s ease;
}

.auth-method.is-active {
  border-color: rgba(30, 166, 184, 0.48);
  background: rgba(215, 245, 248, 0.9);
  color: #0f172a;
}

.auth-method.is-active .auth-method__dot {
  background: var(--primary);
}

.auth-step-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.46;
  color: rgba(15, 23, 42, 0.76);
}

.auth-cta--link {
  text-decoration: none;
}

.maintenance-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.btn-quiet {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: rgba(15, 23, 42, 0.78);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-quiet:hover {
  background: #ffffff;
  color: var(--text);
}

@media (max-width: 560px) {
  .glass-panel {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .auth-heading {
    font-size: 25px;
  }

  h1 {
    font-size: 24px;
  }

  .auth-mobile-downloads {
    position: static;
    width: 100%;
    margin-top: 18px;
    justify-items: center;
  }

  .auth-mobile-downloads__copy {
    font-size: 14px;
    text-align: center;
  }

  .auth-mobile-downloads__links {
    gap: 14px;
  }

  .auth-mobile-store-link {
    font-size: 14px;
  }

  .auth-methods {
    flex-direction: column;
  }
}

/* Global radius standard for pre-login views */
:root {
  --auth-radius: 4px;
}

.glass-panel,
.field-control input,
.field-action,
.auth-cta,
.auth-feedback,
.auth-method,
.btn-quiet {
  border-radius: var(--auth-radius) !important;
}

.auth-shell button,
.auth-shell input[type="submit"],
.auth-shell .auth-cta,
.auth-shell .btn-quiet {
  font-family: "Oxanium", "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

/* keep round dots */
.auth-method__dot,
.status-badge::before {
  border-radius: 999px !important;
}

@media (max-width: 560px) {
  .glass-panel {
    border-radius: var(--auth-radius) !important;
  }
}
