/* home.css — trang chủ: đăng nhập và chọn app. Dùng cùng bảng màu với app làm bài. */
:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-2: #273449;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #e11d48;
  --accent-2: #2563eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

#home {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}
#home h1 { margin: 0 0 24px; font-size: 28px; text-align: center; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.card[hidden] { display: none; }
.card h2 { margin: 0 0 14px; font-size: 18px; }

button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
button:hover { background: #334155; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.primary { background: var(--accent-2); border-color: var(--accent-2); color: #fff; font-weight: 600; }
button.primary:hover { background: #1d4ed8; }
button.link {
  background: none; border: none; color: #93c5fd; padding: 4px 0; font-size: 13px; text-decoration: underline;
}
button.link:hover { background: none; color: #bfdbfe; }

#signInForm { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
#signInForm input {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 14px; padding: 10px 12px;
}
#signInForm input:focus { outline: none; border-color: var(--accent-2); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.error { color: #fca5a5; font-size: 13px; min-height: 18px; }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.who {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; margin-bottom: 16px;
}

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.app-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel-2); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.app-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.app-icon { font-size: 30px; }
.app-name { font-size: 17px; font-weight: 700; }
.app-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
