/* ── WorldDock Cloud – Temporary Login Page ─────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --border:    #30363d;
  --accent:    #238636;
  --accent-hv: #2ea043;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --error:     #f85149;
  --radius:    8px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Brand header ── */
.brand {
  text-align: center;
  margin-bottom: 32px;
  user-select: none;
}
.brand-logo {
  display: block;
  height: 180px;
  width: auto;
  margin: 0 auto 10px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
}
.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Login card ── */
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
}

.login-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
input[type="password"]:focus { border-color: #58a6ff; }
input[type="password"].error  { border-color: var(--error); }

.error-msg {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
  min-height: 1em;
  display: none;
}
.error-msg.visible { display: block; }

.login-btn {
  margin-top: 18px;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.login-btn:hover  { background: var(--accent-hv); }
.login-btn:active { opacity: 0.85; }

/* ── Footer note ── */
.login-note {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
