:root {
  --blue: #326cf4;
  --blue-dark: #2554c7;
  --white: #fff;
  --dark: #222;
  --danger: #ef4444;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--blue);
  color: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--blue);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
}
.app-logo { height: 32px; width: auto; }
.app-top-user { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.app-top-user span { opacity: .9; }

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 64px;
  text-align: center;
}
.app-main .app-logo-hero {
  height: 48px;
  width: auto;
  margin: 0 auto 28px;
}
.app-main h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.app-main p { max-width: 420px; opacity: .92; font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer;
  font-weight: 600; font-size: .95rem; font-family: inherit;
}
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-white { background: var(--white); color: var(--blue); width: 100%; }
.btn-white:hover { background: #f3f6ff; }

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.login-logo { height: 44px; width: auto; margin: 0 auto 28px; }
.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  color: var(--dark);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.login-box h1 { font-size: 1.25rem; margin-bottom: 6px; }
.login-box .lead { color: #6b7280; font-size: .92rem; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: .88rem; font-weight: 600; }
.form-group input {
  padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font: inherit;
}
.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: .9rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
