/* aiia-base.css — shared base styles for grandekos.com templates */

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.aiia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.aiia-header .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.aiia-header nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.aiia-header nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.aiia-header nav a:hover { color: var(--text); }

.aiia-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gks-auth-username {
  font-weight: 600;
  color: var(--accent);
}

.aiia-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 2rem 1rem;
}

.aiia-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.aiia-card h1 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  text-align: center;
}

.aiia-form-row {
  margin-bottom: 1rem;
}

.aiia-form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.aiia-form-row input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

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

.aiia-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #082f49;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.aiia-btn:hover { background: var(--accent-hover); }

.aiia-btn.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.aiia-btn.secondary:hover { background: #475569; }

.aiia-msg {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4rem;
}

.aiia-msg.success { color: var(--success); }
.aiia-msg.error { color: var(--danger); }

.aiia-hero {
  text-align: center;
  max-width: 720px;
}

.aiia-hero h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
.aiia-hero p { color: var(--text-muted); font-size: 1.15rem; }

.hidden { display: none !important; }

@media (max-width: 480px) {
  .aiia-header { flex-wrap: wrap; gap: 0.5rem; }
  .aiia-card { padding: 1.5rem; }
}
