/* cuecongress.css — Shared enterprise base stylesheet */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600');

:root {
  --bg: #0b0d12;
  --bg-alt: #111520;
  --text: #e0e4ea;
  --muted: #a8b1bc;
  --brand: #7dd321;
  --brand-hover: #6bc218;
  --brand-bg: rgba(125,211,33,0.08);
  --border: rgba(255,255,255,0.1);
  --border-strong: rgba(255,255,255,0.15);
  --danger: #dc2626;
  --overlay: rgba(0,0,0,0.7);
  --font: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.2px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text);
  margin-top: 0;
}

p {
  line-height: 1.8;
  letter-spacing: 0.3px;
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: var(--brand-hover);
  text-decoration: none;
  outline: none;
}

/* Buttons — flat, rectangular */
.btn, .pill {
  appearance: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  padding: 12px 24px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary, .pill {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover, .pill:hover {
  background: var(--brand-hover);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #ffffff;
}

/* Input fields */
.input, input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
}

::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* Card — flat with border */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: clamp(16px, 2vw, 24px);
}

/* Form layout */
.form {
  display: grid;
  gap: 14px;
}

/* Labels and hints */
.label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.link {
  color: var(--brand);
  font-weight: 600;
}

.link:hover {
  color: var(--brand-hover);
}

/* Password eye toggle */
.pw-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.pw-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-eye:hover svg {
  stroke: var(--brand-hover);
}

/* Dialogs — enterprise flat */
dialog {
  border: 1px solid var(--border);
  padding: 24px;
  max-width: 520px;
  background: var(--bg-alt);
  color: var(--text);
}

dialog::backdrop {
  background: var(--overlay);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
  background: var(--bg);
}

footer a {
  color: var(--brand);
  margin: 0 10px;
}

footer a:hover {
  color: var(--brand-hover);
}

.footer-social {
  margin-bottom: 10px;
}

.footer-social a {
  color: var(--muted);
  margin: 0 12px;
  display: inline-block;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--brand);
}

.footer-links {
  margin-bottom: 8px;
}

/* Cookie Banner — enterprise flat */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  padding: 15px 20px;
  z-index: 9999;
  border-top: 1px solid var(--border);
}

#cookie-banner .cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

#cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

#cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
}

#cookie-banner .btn-accept {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: 600;
}

#cookie-banner .btn-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 20px;
  cursor: pointer;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
