:root {
  --ws-primary: #1f4ed8;
  --ws-primary-dark: #1a3fb0;
  --ws-accent: #0ea271;
  --ws-bg: #f4f6fb;
  --ws-surface: #ffffff;
  --ws-border: #e3e7ef;
  --ws-text: #1f2733;
  --ws-muted: #6c7a93;
  --ws-danger: #c62828;
  --ws-warning: #b07300;
  --ws-radius: 14px;
  --ws-shadow: 0 18px 38px rgba(31, 78, 216, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(180deg, #f4f6fb 0%, #eaf0fa 100%);
  color: var(--ws-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main {
  flex: 1 0 auto;
}

.ws-navbar {
  background: var(--ws-surface);
  border-bottom: 1px solid var(--ws-border);
  padding: 0.75rem 0;
}

.ws-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--ws-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.ws-brand:hover {
  color: var(--ws-primary);
}

.ws-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ws-primary), #4f72e8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(31, 78, 216, 0.3);
}

.ws-brand-text {
  font-size: 1.05rem;
}

.ws-brand-subtitle {
  font-size: 0.75rem;
  color: var(--ws-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}

.ws-nav-links a {
  color: var(--ws-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  margin-left: 1.5rem;
}

.ws-nav-links a:hover {
  color: var(--ws-text);
}

.ws-card {
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
}

.ws-card-pad {
  padding: 2.25rem;
}

.ws-auth-wrapper {
  max-width: 460px;
  margin: 3rem auto 4rem;
}

.ws-auth-title {
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ws-auth-sub {
  color: var(--ws-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.ws-form-label {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ws-text);
  margin-bottom: 0.4rem;
}

.ws-input {
  border: 1px solid var(--ws-border);
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  width: 100%;
  background: #fbfcfe;
}

.ws-input:focus {
  outline: none;
  border-color: var(--ws-primary);
  box-shadow: 0 0 0 4px rgba(31, 78, 216, 0.12);
  background: #fff;
}

.ws-input.is-invalid {
  border-color: var(--ws-danger);
}

.ws-btn {
  display: inline-block;
  background: var(--ws-primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
  width: 100%;
}

.ws-btn:hover {
  background: var(--ws-primary-dark);
  color: #fff;
}

.ws-btn-secondary {
  background: transparent;
  color: var(--ws-primary);
  border: 1px solid var(--ws-border);
}

.ws-btn-secondary:hover {
  background: #f0f3fb;
  color: var(--ws-primary-dark);
}

.ws-link {
  color: var(--ws-primary);
  text-decoration: none;
  font-weight: 500;
}

.ws-link:hover {
  color: var(--ws-primary-dark);
  text-decoration: underline;
}

.ws-divider {
  border: 0;
  height: 1px;
  background: var(--ws-border);
  margin: 1.5rem 0;
}

.ws-alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.ws-alert-danger {
  background: #fdecec;
  color: var(--ws-danger);
  border: 1px solid #f7c8c8;
}

.ws-alert-success {
  background: #e6f7ef;
  color: #0d6e44;
  border: 1px solid #bce6d2;
}

.ws-alert-info {
  background: #eaf0fb;
  color: #1a3fb0;
  border: 1px solid #c8d4f1;
}

.ws-helptext {
  color: var(--ws-muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.ws-otp-input {
  letter-spacing: 0.4em;
  text-align: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.05rem;
}

.ws-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ws-border);
  border-radius: 11px;
  margin-bottom: 0.6rem;
  background: #fff;
}

.ws-status-name {
  font-weight: 500;
}

.ws-status-meta {
  color: var(--ws-muted);
  font-size: 0.82rem;
}

.ws-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ws-pill-ok {
  background: #e6f7ef;
  color: #0d6e44;
}

.ws-pill-warn {
  background: #fff5e0;
  color: var(--ws-warning);
}

.ws-pill-down {
  background: #fdecec;
  color: var(--ws-danger);
}

.ws-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ws-help-section {
  margin-bottom: 2rem;
}

.ws-help-section h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.ws-help-section ul {
  padding-left: 1.25rem;
  color: var(--ws-text);
}

.ws-help-section li {
  margin-bottom: 0.35rem;
}

.ws-footer {
  background: transparent;
  color: var(--ws-muted);
  font-size: 0.82rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ws-border);
  margin-top: 3rem;
}

.ws-footer .ws-meta {
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.ws-uptime-grid {
  display: grid;
  grid-template-columns: repeat(45, 1fr);
  gap: 2px;
  margin-top: 0.5rem;
}

.ws-uptime-bar {
  height: 22px;
  border-radius: 2px;
  background: #2bbf85;
}

.ws-uptime-bar.degraded { background: #d6a93a; }
.ws-uptime-bar.down { background: #c62828; }

.ws-hero-h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.ws-hero-sub {
  color: var(--ws-muted);
  margin-bottom: 1.75rem;
}

@media (max-width: 575px) {
  .ws-card-pad { padding: 1.5rem; }
  .ws-auth-wrapper { margin: 1.5rem auto 2rem; }
  .ws-nav-links { display: none; }
}
