/* Sovran_SystemsOS Hub — Web UI Stylesheet
   Dark theme — near-black with green accents matching the Sovran Hub icon
   v8 — Black-forward, green used for accents/borders/highlights only */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color:        #080a09;
  --surface-color:   rgba(14, 16, 15, 0.7);
  --card-color:      rgba(20, 22, 21, 0.6);
  --border-color:    rgba(255, 255, 255, 0.06);
  --text-primary:    #ecf3ef;
  --text-secondary:  #8aaa9a;
  --text-dim:        #4a6658;
  --accent-color:    #5EAD8A;
  --green:           #6DBF8B;
  --yellow:          #e5a50a;
  --red:             #e01b24;
  --grey:            #5E7A6A;
  --radius-card:     18px;
  --radius-btn:      8px;
  --shadow-card:     0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-hover:    0 8px 32px rgba(0, 0, 0, 0.5);
}

html, body {
  height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse at top, rgba(94, 173, 138, 0.04) 0%, transparent 50%),
    var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Login page ──────────────────────────────────────────────────── */

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background-color: rgba(14, 16, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  height: 64px;
  margin-bottom: 16px;
}

.login-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  background-color: var(--card-color);
  color: var(--text-primary);
  font-size: 0.92rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.btn-login {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-btn);
  background-color: var(--accent-color);
  color: #0A1A10;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 8px;
}

.btn-login:hover {
  opacity: 0.88;
}

.login-error {
  background-color: rgba(224, 27, 36, 0.12);
  border: 1px solid var(--red);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
}

.login-error.visible {
  display: block;
}
