html, body {
  overflow: auto;
  height: 100%;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 5px;
  border: 2px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

* {
  scrollbar-color: #555 #1e1e1e;
  scrollbar-width: thin;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 84px; /* leave room for header */
  padding-bottom: 32px;
  min-height: calc(100vh - 84px);
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(2,6,10,0.6);
  padding: 28px;
}

.label.has-text-white { color: #d9e7f6; }
.input {
  background: #0f1214;
  color: #e6eef6;
  border: 1px solid rgba(255,255,255,0.04);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(78,163,255,0.06);
}
.icon.is-left .fa-user,
.icon.is-left .fa-lock, .icon.is-left .fa-envelope { color: rgba(255,255,255,0.6); }

.password-toggle { cursor: pointer; color: rgba(255,255,255,0.6); }
.password-toggle:focus, .password-toggle:hover { color: var(--accent); outline: none; }

progress.progress {
  background-color: rgba(255,255,255,0.03);
  border-radius: 6px;
  height: 6px;
  width: 100%;
  appearance: none;
  margin-top: 6px;
}
progress.progress::-webkit-progress-bar { background-color: rgba(255,255,255,0.03); border-radius: 6px; }
progress.progress::-webkit-progress-value { background-color: var(--accent); border-radius: 6px; }

/* help messages */
.help.is-danger { color: var(--danger); margin-top: 6px; }

/* notification hidden helper */
.is-hidden { display: none !important; }

/* responsive */
@media (max-width: 640px) {
  .auth-card { margin: 0 12px; padding: 20px; }
  .header-inner { padding: 0 10px; }
}

/* focus outline for accessibility */
input:focus, button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(78,163,255,0.06);
  border-color: var(--accent);
}
