/* =====================================================================
   CSL - wygląd strony logowania, odzyskiwania hasła i głównego panelu
   Ładowany po style.css (nadpisuje go, bez kompilacji SCSS)
   ===================================================================== */
:root {
  --p-bg: #f4f6fa;
  --p-card: #ffffff;
  --p-border: #e4e7ef;
  --p-text: #2f3542;
  --p-muted: #7b8396;
  --p-primary: #3a5bc7;
  --p-primary-h: #2f4db0;
  --p-dark: #161b26;
  --p-radius: 14px;
}
* { font-family: "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif; }

/* ---------- Logotyp CSL (tekst zamiast grafiki) ---------- */
.csl-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 18px; user-select: none; text-decoration: none; }
.csl-logo .mark {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; letter-spacing: .14em; padding: 10px 14px 10px 22px; line-height: 1;
  color: #fff; border-radius: 14px;
  background: linear-gradient(135deg, #5b7cf0 0%, #3a5bc7 55%, #2a3f99 100%);
  box-shadow: 0 8px 22px rgba(58, 91, 199, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.csl-logo .sub { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--p-muted); }
/* Mała wersja w nagłówku panelu */
.csl-logo.sm { flex-direction: row; gap: 10px; margin: 0; }
.csl-logo.sm .mark { font-size: 14px; padding: 7px 8px 7px 11px; border-radius: 9px; letter-spacing: .12em; box-shadow: 0 3px 10px rgba(58, 91, 199, .35); }
.csl-logo.sm .sub { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---------- Strony logowania, rejestracji, odzyskiwania hasła ---------- */
body.auth {
  min-height: 100vh; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(91, 124, 240, .35), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(42, 63, 153, .45), transparent 60%),
    linear-gradient(160deg, #1b2233 0%, #121725 100%);
  box-sizing: border-box;
}
body.auth::after { content: "CSL · Centralny System Logowania"; margin-top: 22px; font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .45); }
body.auth .login, body.auth .register {
  width: 420px; max-width: 100%; margin: 0; padding: 34px 34px 28px;
  background: var(--p-card); border-radius: var(--p-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .15);
}
body.auth .register { width: 480px; }
body.auth .login > img { display: none; }
body.auth .login h1, body.auth .register h1 { font-size: 20px; font-weight: 600; color: var(--p-text); padding: 0 0 18px; }
body.auth .login .icon, body.auth .register .icon { display: none; }
body.auth .form .form-label { padding: 0; }
body.auth .form .form-group.pad-y-5 { padding: 2px 0 18px; margin-bottom: 0; }
body.auth .form .form-group.mar-bot-5 { margin-bottom: 18px; }
html:has(body:not(.auth)) { background: var(--p-bg); }
body.auth .form .form-label { font-size: 13px; font-weight: 600; color: #4a5263; margin: 0 0 6px; }
body.auth .form .form-group { margin-bottom: 16px; }
body.auth .form .form-input { height: 46px; border-radius: 10px; border: 1px solid #d5d9e3; font-size: 15px; background: #fbfcfe; color: var(--p-text); transition: border-color .15s, box-shadow .15s; }
body.auth .form .form-input:hover { border-color: #b9c0cf; }
body.auth .form .form-input:focus { background: #fff; border-color: var(--p-primary); box-shadow: 0 0 0 4px rgba(58, 91, 199, .15); }
body.auth .form .form-group:focus-within .form-icon-left { fill: var(--p-primary); }
body.auth .form .form-link { color: var(--p-primary); font-weight: 600; }
body.auth .form .form-link:hover { color: var(--p-primary-h); text-decoration: underline; }
body.auth .form #remember_me { font-weight: 500; color: #4a5263; }
body.auth .form #remember_me input { opacity: 1; accent-color: var(--p-primary); }
body.auth .btn[type=submit] {
  width: 100%; height: 46px; border-radius: 10px; font-size: 15px; font-weight: 600; margin-top: 4px;
  background: linear-gradient(135deg, #4f74e3, #3a5bc7); box-shadow: 0 6px 16px rgba(58, 91, 199, .3); transition: transform .1s, box-shadow .15s, filter .15s;
}
body.auth .btn[type=submit]:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(58, 91, 199, .38); }
body.auth .btn[type=submit]:active { transform: translateY(1px); }
body.auth .form p.register-link { text-align: center; color: var(--p-muted); }
body.auth .form div.msg:not(:empty) { border-radius: 9px; padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; }
body.auth .form div.msg.error:not(:empty) { background: #fff1f1; color: #9b2c2c; border: 1px solid #f5c9c9; }
body.auth .form div.msg.success:not(:empty) { background: #ecfbf3; color: #146c3c; border: 1px solid #bfe9d1; }
body.auth .next-info { background: #eef3ff; border: 1px solid #d6e0ff; border-left: 4px solid var(--p-primary); border-radius: 10px; }

/* ---------- Nagłówek głównego panelu (strona główna, profil) ---------- */
.header { background: var(--p-dark); height: 64px; box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 4px 14px rgba(0, 0, 0, .12); position: sticky; top: 0; z-index: 1000; }
.header .wrapper { width: 1300px; max-width: 100%; padding: 0 20px; box-sizing: border-box; }

.header .wrapper .menu { gap: 4px; }
.header .wrapper .menu a {
  color: #aab3c5 !important; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; text-decoration: none; margin: 0;
  transition: background .15s, color .15s;
}
.header .wrapper .menu a:hover { background: #222a3a; color: #fff !important; }
.header .wrapper .menu a.active { background: var(--p-primary); color: #fff !important; }
.header .wrapper .menu a.alt { border: 1px solid #2c3546; margin-left: 8px; }
.header .wrapper .menu a.alt:hover { background: #3a2026; border-color: #5a2a33; color: #ffb4b4 !important; }
.header .wrapper .menu a svg { fill: currentColor; }
.content { width: 1300px; max-width: 100%; }
body:not(.auth) { background: var(--p-bg); }

/* Profil */
.content .page-title { padding: 28px 20px 6px; }
.content .page-title .icon { background: linear-gradient(135deg, #4f74e3, #3a5bc7); border-radius: 14px; box-shadow: 0 4px 10px rgba(58, 91, 199, .25); }
.content .page-title h2 { color: var(--p-text); font-size: 21px; }
.content .page-title p { color: var(--p-muted); }
.content .block { border: 1px solid var(--p-border); border-radius: var(--p-radius); box-shadow: 0 1px 3px rgba(16, 24, 40, .06); margin: 20px; }
.content .profile-detail strong { color: var(--p-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.content .form .form-input { border-radius: 9px; height: 44px; }
.content .form .form-input:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(58, 91, 199, .15); }
.content .btn { border-radius: 9px; background: var(--p-primary); }
.content .btn:hover { background: var(--p-primary-h); }
.content .btn.alt { background: #fff; color: #3f4757; border: 1px solid #d5d9e3; box-shadow: none; }

@media (max-width: 600px) {
  body.auth .login, body.auth .register { padding: 26px 20px 22px; }
  .csl-logo .mark { font-size: 26px; }
}
