@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --forest: #1f5137;
  --rose: #a1335b;
  --wine: #4a2235;
  --gold: #d7b56d;
  --silver: #ced2d8;
  --text: #2f2a27;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 24, 21, 0.65), rgba(18, 24, 21, 0.65)),
    url('weseletlo.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #152018;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(215, 181, 109, 0.22), transparent 36%),
    radial-gradient(circle at 86% 14%, rgba(206, 210, 216, 0.14), transparent 30%);
}

body.login-page::before {
  background-image:
    linear-gradient(rgba(18, 24, 21, 0.68), rgba(18, 24, 21, 0.68)),
    url('tlologin.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #131f18;
}

body.login-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.site-shell {
  width: min(1000px, calc(100% - 20px));
  margin: 0 auto;
  padding: 0 0 30px;
}

.navbar-hero {
  min-height: 170px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, rgba(31, 81, 55, 0.97), rgba(215, 181, 109, 0.86));
  box-shadow: 0 16px 34px rgba(31, 23, 16, 0.26);
}

.navbar-content {
  text-align: center;
  color: #fff;
  padding: 34px 16px 20px;
}

.navbar-content h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

.navbar-content p {
  margin: 3px 0 0;
  color: #f2e4bf;
  font-weight: 800;
}

.top-actions {
  margin: 18px auto 20px;
  width: min(1000px, calc(100% - 20px));
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(120deg, var(--wine), var(--rose));
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 8px 16px rgba(24, 15, 19, 0.28);
}

.action-chip.alt {
  background: linear-gradient(120deg, #376f56, var(--forest));
}

.panel {
  width: min(760px, calc(100% - 20px));
  margin: 0 auto;
  background: rgba(255, 251, 243, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(26, 19, 13, 0.28);
}

.panel h2 {
  margin: 0 0 12px;
  text-align: center;
  color: #473428;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4.6vw, 2.3rem);
}

.flash {
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flash.error {
  color: #7b1f3f;
  background: #ffe8ef;
  border: 1px solid #e7b4c5;
}

.flash.success {
  color: #205c3b;
  background: #e6f7ed;
  border: 1px solid #b4dbc3;
}

.input-grid {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 800;
  color: #5c463a;
}

input[type='text'],
input[type='datetime-local'],
input[type='file'],
textarea,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d8c6a7;
  padding: 10px 12px;
  background: #fffdf7;
  color: inherit;
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.preview-box {
  text-align: center;
}

.preview-box img {
  max-width: 260px;
  max-height: 220px;
  width: 100%;
  object-fit: contain;
  background: #f2ebdc;
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(32, 22, 14, 0.24);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.btn-main {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(120deg, var(--rose), #7f2447);
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(91, 32, 58, 0.26);
}

.btn-main:hover {
  filter: brightness(1.04);
}

.login-shell {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 14px;
}

.login-side-photo {
  width: min(24vw, 320px);
  height: min(64vh, 560px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(18, 12, 9, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.55);
  align-self: center;
}

.login-side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-card {
  width: min(510px, 95vw);
  background: rgba(255, 252, 246, 0.88);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 16px 30px rgba(23, 17, 12, 0.35);
  margin-bottom: 0;
  align-self: center;
}

.login-hero-banner {
  border-radius: 14px;
  padding: 10px 10px 8px;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #1f5137, #244f3b);
}

.login-card h2 {
  margin: 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5.6vw, 3rem);
  color: #f4efe3;
}

.login-date {
  margin: 2px 0 10px;
  text-align: center;
  color: #f3dfb0;
  font-weight: 800;
}

.login-muted {
  text-align: center;
  color: #675a50;
  margin: 0 0 14px;
}

.login-label {
  text-align: center;
}

@media (max-width: 760px) {
  .navbar-hero {
    min-height: 150px;
    border-radius: 0 0 22px 22px;
  }

  .action-chip {
    width: 100%;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .login-side-photo {
    display: none;
  }

  body.login-page::before {
    background-image:
      linear-gradient(rgba(18, 24, 21, 0.68), rgba(18, 24, 21, 0.68)),
      url('zdjecietlologin.webp');
    background-size: cover;
    background-position: center center;
  }

  .login-shell {
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
