:root {
  --av-blue: #0787a7;
  --av-blue-deep: #066178;
  --av-orange: #f58a1f;
  --av-green: #2e8b57;
  --av-ink: #15342f;
  --av-muted: #657a75;
  --av-surface: rgba(255,255,255,.78);
  --av-line: rgba(255,255,255,.45);
  --av-shadow: 0 24px 70px rgba(12, 48, 46, .22);
  --av-radius: 28px;
  --focus: 0 0 0 4px rgba(7,135,167,.2);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #f5fbf8; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--av-ink); }
a { color: var(--av-blue-deep); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--focus); }



.auth-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
  background: #071e23;
}

.auth-slider {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #071e23;
}

.auth-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.15s ease, transform 7s ease;
  will-change: opacity, transform;
}

.auth-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 16, 22, .30), rgba(1, 20, 25, .46)),
    radial-gradient(circle at 50% 44%, rgba(2, 43, 48, .08), rgba(0, 13, 18, .28) 72%);
}

.auth-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  margin: auto;
}

.auth-stage--wide {
  width: min(100%, 520px);
}

.glass-card {
  width: 100%;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(19, 44, 52, .64), rgba(22, 53, 61, .46));
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  color: #fff;
}

.brand-lockup {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.24));
  margin-bottom: 8px;
}

.brand-lockup strong {
  display: block;
  font-size: 1.08rem;
  color: #fff;
}

.brand-lockup span {
  display: block;
  color: rgba(255,255,255,.72);
  margin-top: 3px;
  font-size: .82rem;
}

.card-kicker {
  color: #c4f4ef;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .68rem;
  text-align: center;
}

.glass-card h2 {
  margin: 7px 0 7px;
  text-align: center;
  font-size: 2rem;
  letter-spacing: -.035em;
  color: #fff;
}

.card-subtitle {
  margin: 0 auto 20px;
  max-width: 38ch;
  color: rgba(255,255,255,.76);
  line-height: 1.48;
  text-align: center;
  font-size: .88rem;
}

.field { margin: 0 0 14px; }

.field label {
  display: block;
  margin: 0 0 7px;
  font-weight: 760;
  font-size: .82rem;
  color: rgba(255,255,255,.94);
}

.field input {
  width: 100%;
  min-height: 47px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 11px;
  padding: 0 14px;
  background: rgba(255,255,255,.13);
  color: #fff;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.field input::placeholder { color: rgba(255,255,255,.52); }

.field input:focus {
  border-color: rgba(103, 224, 226, .88);
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 3px rgba(7,135,167,.22);
  outline: none;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }

.password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 35px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  padding: 0 11px;
  cursor: pointer;
  color: #fff;
  background: rgba(7, 42, 49, .42);
  font-weight: 760;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 24px;
  margin: -1px 0 13px;
}

.muted-link {
  color: rgba(255,255,255,.76);
  font-size: .76rem;
  text-decoration: none;
  font-weight: 690;
}

.btn {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 840;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}

.btn:hover { filter: brightness(1.045); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, #0b96b5, #27a86d);
  box-shadow: 0 10px 24px rgba(0, 32, 37, .28);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.10);
}

.btn + .btn { margin-top: 10px; }

.alert {
  border-radius: 11px;
  padding: 11px 13px;
  margin: 0 0 16px;
  font-size: .84rem;
  line-height: 1.4;
}
.alert-error { color:#fff0f0; background:rgba(123,23,23,.62); border:1px solid rgba(255,174,174,.42); }
.alert-success { color:#edfff5; background:rgba(14,93,58,.60); border:1px solid rgba(175,241,202,.38); }

.install-wrap { margin-top: 9px; }
.install-wrap [hidden] { display:none !important; }

.auth-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}

.auth-dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,.42);
  transition: width .2s ease, background .2s ease;
}

.auth-dot.is-active {
  width: 20px;
  background: var(--av-orange);
}

.auth-footer {
  margin-top: 13px;
  color: rgba(255,255,255,.55);
  text-align: center;
  font-size: .69rem;
}

.code-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:16px 0; }
.code-grid code { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.24); border-radius:9px; padding:8px; text-align:center; overflow-wrap:anywhere; color:#fff; }
.secret-box { padding:12px; border-radius:10px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.24); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap:anywhere; color:#fff; }
.glass-card details { color: rgba(255,255,255,.86); margin: 10px 0 15px; }
.glass-card summary { cursor: pointer; font-weight: 700; }

@media (max-height: 740px) and (min-width: 700px) {
  .auth-page { padding: 12px; }
  .glass-card { padding: 20px 24px 18px; }
  .brand-logo { width: 68px; height: 68px; margin-bottom: 5px; }
  .brand-lockup { margin-bottom: 13px; }
  .glass-card h2 { font-size: 1.7rem; }
  .card-subtitle { margin-bottom: 14px; }
  .field { margin-bottom: 10px; }
  .field input { min-height: 42px; }
  .btn { min-height: 42px; }
}

@media (max-width: 620px) {
  .auth-page { overflow-y: auto; padding: 16px; }
  .auth-stage, .auth-stage--wide { width: min(100%, 410px); }
  .glass-card { padding: 23px 19px 20px; border-radius: 20px; }
  .brand-logo { width: 78px; height: 78px; }
  .code-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-slide { transition: opacity .18s linear; transform: none !important; }
}

.app-shell { min-height:100vh; background:linear-gradient(135deg,#eff9f6,#f9f5e9); }
.app-topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px clamp(16px,3vw,34px); border-bottom:1px solid rgba(255,255,255,.7); background:rgba(255,255,255,.66); backdrop-filter:blur(20px) saturate(145%); -webkit-backdrop-filter:blur(20px) saturate(145%); box-shadow:0 8px 30px rgba(25,80,69,.08); }
.topbar-brand { display:flex; gap:12px; align-items:center; }
.topbar-brand .brand-mark { width:42px; height:42px; border-radius:14px; }
.topbar-brand strong { display:block; }
.topbar-brand small { color:var(--av-muted); }
.topbar-actions { display:flex; gap:10px; align-items:center; }
.user-chip { padding:9px 13px; border:1px solid #dce9e5; background:rgba(255,255,255,.76); border-radius:999px; font-weight:700; }
.logout-form { margin:0; }
.logout-form button { border:0; background:#15342f; color:#fff; border-radius:12px; padding:10px 14px; cursor:pointer; font-weight:750; }
.dashboard { max-width:1180px; margin:0 auto; padding:clamp(24px,5vw,56px) clamp(16px,3vw,30px); }
.hero-dashboard { border:1px solid rgba(255,255,255,.9); border-radius:30px; padding:clamp(26px,4vw,48px); background:rgba(255,255,255,.72); backdrop-filter:blur(18px); box-shadow:var(--av-shadow); }
.hero-dashboard h1 { margin:8px 0 10px; font-size:clamp(2rem,5vw,4rem); letter-spacing:-.045em; }
.hero-dashboard p { color:var(--av-muted); max-width:760px; line-height:1.65; }
.module-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:22px; }
.module-card { padding:20px; border-radius:20px; background:rgba(255,255,255,.7); border:1px solid rgba(255,255,255,.95); box-shadow:0 12px 32px rgba(25,80,69,.08); }
.module-card strong { display:block; margin-bottom:6px; }
.module-card span { color:var(--av-muted); font-size:.92rem; }

@media (max-width: 980px) {
  .module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .module-grid { grid-template-columns:1fr; }
  .app-topbar { align-items:flex-start; }
  .user-chip { display:none; }
}

.full-height { min-height: 100vh; }
