:root {
  --bg-image: url('./assets/HintergrundG_0.3.png');
  --brand-green: #1d3d2b;
  --brand-olive: #7a8b4d;
  --brand-cream: #f4efe8;
  --text-shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-image) center center / cover no-repeat fixed;
  color: var(--brand-cream);
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.18);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  padding: 2rem;
}

.logo-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(110px, 12vw, 170px);
  aspect-ratio: 1;
  padding: 0.55rem;
  background: radial-gradient(circle at 30% 28%, rgba(248, 225, 182, 0.9), rgba(182, 134, 79, 0.8) 24%, rgba(88, 63, 39, 0.96) 54%, rgba(26, 18, 11, 0.92) 100%);
  border: 3px solid rgba(245, 214, 161, 0.82);
  border-radius: 50%;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(64, 47, 30, 0.42), inset 0 18px 18px rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.logo-button::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.logo-button:hover,
.logo-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 240, 210, 0.95);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.32), inset 0 0 0 3px rgba(64, 47, 30, 0.42), inset 0 18px 18px rgba(255, 255, 255, 0.18);
}

.logo-button img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(16, 9, 4, 0.38));
}

.slogan {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  text-align: center;
  line-height: 1;
}

.wordmark {
  display: block;
  color: #d8b27a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 4.5vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 #4a3321, -1px -1px 0 rgba(255,255,255,0.25), 0 10px 18px rgba(31, 20, 10, 0.18);
  -webkit-text-stroke: 1.2px #4a3321;
}

.tagline {
  display: block;
  padding: 0.15em 0.6em 0.2em;
  border-radius: 0.35em;
  background: linear-gradient(135deg, #d9b17a 0%, #b78a5a 28%, #dcb988 52%, #a87649 100%);
  color: #4a3321;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.2rem, 2.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border: 2px solid #4a3321;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), inset 0 -2px 0 rgba(74,51,33,0.18), 0 8px 18px rgba(0,0,0,0.12);
}

.dot {
  display: inline-block;
  margin: 0 0.16em;
  transform: translateY(-0.04em);
}

.panel-page {
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(16, 24, 18, 0.28), rgba(16, 24, 18, 0.28)), var(--bg-image) center center / cover no-repeat fixed;
}

.panel-card {
  position: relative;
  z-index: 1;
  width: min(90vw, 540px);
  background: rgba(17, 30, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  color: var(--brand-cream);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand-cream);
  text-decoration: none;
}

.panel-logo {
  display: block;
  width: min(220px, 60%);
  margin: 0 auto 1rem;
}

.panel-card h1 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.panel-card p {
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.login-form label {
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 2.8rem;
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d2b21;
  font: inherit;
}

.login-form input:focus-visible,
.login-form button:focus-visible {
  outline: 3px solid #d8b27a;
  outline-offset: 2px;
}

.login-form button {
  min-height: 3rem;
  margin-top: 0.25rem;
  border: 1px solid #d8b27a;
  border-radius: 8px;
  background: #d8b27a;
  color: #1d2b21;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-form button:hover {
  background: #e5c89e;
}

.login-form .login-status {
  min-height: 1.6em;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: rgba(244, 239, 232, 0.9);
}

.sso-form {
  margin-top: 1.5rem;
}

.sso-button {
  width: 100%;
  font-size: 1.15rem;
}

@media (max-width: 640px) {
  .hero {
    gap: 0.8rem;
  }

  .logo-button {
    width: clamp(92px, 20vw, 140px);
  }

  .slogan {
    font-size: 2.2rem;
    max-width: 14em;
  }
}
