/* Panel Faneo — styl marki (paleta z faneo.net)
 * Pomarańcz #ff3800, czerwony #db0000, czerń #000, białe tło
 * Autor: @dev Dawid, 2026-04-18 */

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

:root {
  --accent:         #ff3800;   /* ogień — logo, CTA, linki */
  --accent-hover:   #e02f00;   /* ciemniejszy pomarańcz przy najeździe */
  --accent-2:       #db0000;   /* czerwony — drugi akcent */
  --bg:             #ffffff;
  --bg-soft:        #fafafa;
  --bg-card:        #ffffff;
  --bg-card-hover:  #fff8f5;   /* bardzo delikatny beżowy, ledwo widoczny */
  --border:         #e5e5e5;
  --border-strong:  #cfcfcf;
  --text:           #000000;
  --text-dim:       #555555;
  --graphite:       #32373c;
  --warning:        #d29922;
  --radius:         6px;
  --radius-lg:      10px;
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow:         0 4px 14px rgba(0, 0, 0, 0.08);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Górny pasek — białe tło, cienka pomarańczowa kreska pod spodem */
.topbar {
  border-bottom: 3px solid var(--accent);
  padding: 14px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.brand:hover { color: var(--accent); }

nav .user {
  color: var(--text-dim);
  margin-right: 16px;
  font-size: 14px;
}

.link-secondary {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.link-secondary:hover { color: var(--accent-hover); text-decoration: underline; }

main.wrap {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 48px;
}

h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
  text-transform: uppercase;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

p.lead {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 24px;
}

p.hint-small {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 24px;
}

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

/* Formularz logowania */
.auth-box {
  max-width: 440px;
  margin: 48px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}

.auth-form label {
  display: block;
  margin-bottom: 16px;
}

.auth-form label span {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 56, 0, 0.15);
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 13px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover { background: var(--accent-hover); color: white; text-decoration: none; }

/* Pulpit — kafelki */
.pulpit h1 { margin-bottom: 32px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  min-height: 140px;
  box-shadow: var(--shadow-sm);
}

.tile:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.tile h2 {
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--text);
}

.tile p {
  color: var(--text-dim);
  font-size: 14px;
}

.tile-soon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 56, 0, 0.1);
  border: 1px solid rgba(255, 56, 0, 0.3);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* Stopka — czarna z białym tekstem */
footer.bottom {
  background: var(--text);
  border-top: none;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: auto;
}

footer.bottom a { color: white; text-decoration: underline; }

/* Mobile */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 28px; }
  .auth-box { padding: 28px 20px; margin-top: 24px; }
  .tiles { grid-template-columns: 1fr; }
}
