/* Fundwiser App — shared auth/portal styles (light brutalist) */

:root {
  --black: #0a0a0a;
  --white: #f5f5f5;
  --pure-white: #ffffff;
  --yellow: #e8ff00;
  --gray: #9a9a9a;
  --gray-on-light: #666;
  --dark-gray: #222;
  --border: #0a0a0a;
}

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

html, body {
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: underline; }
a:hover { background: var(--yellow); }

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--pure-white);
  border: 2px solid var(--border);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.card.wide { max-width: 720px; }

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand-row img { height: 24px; width: auto; }

.brand-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Bebas Neue', 'Space Mono', sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  line-height: 1.05;
}

p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  color: var(--dark-gray);
}

p.lead { margin-bottom: 24px; }

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

input[type=email],
input[type=text] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--pure-white);
  color: var(--black);
  border: 2px solid var(--border);
  border-radius: 0;
}

input[type=email]:focus,
input[type=text]:focus {
  outline: none;
  background: var(--yellow);
}

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn:hover:not(:disabled) {
  background: var(--yellow);
  color: var(--black);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-link {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--black);
  border: none;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 13px;
}
.btn-link:hover { background: var(--yellow); color: var(--black); }

.notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 2px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
}
.notice.error { background: var(--yellow); }
.notice.info { background: var(--white); }

.meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-on-light);
  text-align: center;
}

.meta a { color: var(--black); }

.icon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--yellow);
  border: 2px solid var(--border);
}

.email-display {
  display: inline-block;
  padding: 2px 6px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  word-break: break-all;
}

/* Picker grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.client-card {
  display: block;
  background: var(--pure-white);
  border: 2px solid var(--border);
  padding: 18px;
  text-decoration: none;
  color: var(--black);
  transition: background-color 0.15s;
}

.client-card:hover {
  background: var(--yellow);
}

.client-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.client-card .slug {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-on-light);
}

.empty {
  background: var(--pure-white);
  border: 2px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-on-light);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.logout-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
}
.logout-link:hover { background: var(--yellow); }
