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

:root {
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-light: #e0f2fe;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea580c;
  --bg: #f0f9ff;
  --white: #fff;
  --gray: #64748b;
  --dark: #0f172a;
  --shadow: 0 2px 8px rgba(2, 132, 199, .10);
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--blue-dark), #0ea5e9);
}
.auth-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}
.auth-logo { text-align: center; font-size: 48px; margin-bottom: 8px; }
.auth-title { text-align: center; font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.auth-sub { text-align: center; font-size: 13px; color: var(--gray); margin-bottom: 24px; }

.auth-msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.auth-msg.error { background: #fef2f2; color: var(--red); }
.auth-msg.ok { background: #f0fdf4; color: var(--green); }
.auth-msg.warn { background: #fff7ed; color: var(--orange); }

label { font-size: 13px; font-weight: 700; color: #374151; display: block; margin-bottom: 4px; }

input, select {
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 100%;
  margin-bottom: 12px;
}
input:focus, select:focus { border-color: var(--blue); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.btn-primary:disabled { opacity: .55; cursor: default; }

.btn-ghost {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--gray); }
.auth-foot a { color: var(--blue); font-weight: 700; text-decoration: none; }

.hidden { display: none !important; }

.app-grid { display: flex; flex-direction: column; gap: 12px; }
.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  width: 100%;
}
.app-card:hover { border-color: var(--blue); background: var(--blue-light); }
.app-card .icon { font-size: 30px; line-height: 1; flex-shrink: 0; }
.app-card .title { font-weight: 900; font-size: 15px; }
.app-card .desc { font-size: 12.5px; color: var(--gray); margin-top: 2px; }
.app-card.soon { opacity: .5; cursor: default; }
.app-card.soon:hover { border-color: #e2e8f0; background: #fff; }
