/* Schichtplaner.Cloud Login 0.1.16
   Realistische Bäckermeister-Szene + getrennte Desktop-/Tablet-Loginfenster */

:root {
  --spc-bg: #07111d;
  --spc-panel: rgba(9, 20, 34, .90);
  --spc-panel-strong: rgba(9, 20, 34, .96);
  --spc-border: rgba(255,255,255,.16);
  --spc-text: #f8fafc;
  --spc-muted: #cbd5e1;
  --spc-soft: #94a3b8;
  --spc-red: #e30613;
  --spc-red-dark: #b91c1c;
  --spc-green: #22c55e;
  --spc-shadow: 0 34px 90px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
}

body.spc-login-body {
  min-height: 100dvh;
  color: var(--spc-text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(7,17,29,.98) 0%, rgba(7,17,29,.88) 36%, rgba(7,17,29,.42) 68%, rgba(7,17,29,.18) 100%),
    url('/assets/img/login-baeckermeister-real.jpg?v=016') center right / cover no-repeat,
    var(--spc-bg);
  overflow-x: hidden;
}

.spc-login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(420px, 720px) minmax(0, 1fr);
}

.spc-login-left {
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 86px);
}

.spc-login-box {
  width: min(660px, 100%);
  background: linear-gradient(180deg, rgba(9,20,34,.94), rgba(9,20,34,.82));
  border: 1px solid var(--spc-border);
  border-radius: 32px;
  padding: clamp(30px, 3.4vw, 46px);
  box-shadow: var(--spc-shadow);
  backdrop-filter: blur(16px);
}

.spc-wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.spc-mark {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--spc-red), var(--spc-red-dark));
  position: relative;
  box-shadow: 0 12px 30px rgba(227,6,19,.28);
}

.spc-mark::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 9px 0 #0f172a;
}

.spc-mark::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 9px;
  height: 9px;
  background: var(--spc-green);
  border-radius: 99px;
}

.spc-wordmark strong {
  display: block;
  font-size: clamp(32px, 3vw, 42px);
  line-height: .96;
  letter-spacing: -.06em;
}

.spc-wordmark strong span {
  color: var(--spc-red);
}

.spc-wordmark small {
  display: block;
  color: var(--spc-muted);
  font-weight: 800;
  margin-top: 7px;
  font-size: 15px;
}

.spc-redline {
  width: 70px;
  height: 4px;
  border-radius: 99px;
  background: var(--spc-red);
  margin: 0 0 28px;
}

.spc-login-box h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -.06em;
}

.spc-lead {
  margin: 18px 0 0;
  color: var(--spc-muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
}

.spc-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(227,6,19,.16);
  border: 1px solid rgba(227,6,19,.38);
  color: #fee2e2;
  font-weight: 800;
}

.spc-login-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.spc-login-form label {
  display: grid;
  gap: 9px;
  color: #e5e7eb;
  font-weight: 900;
}

.spc-login-form input {
  width: 100%;
  padding: 16px 17px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(2,6,23,.52);
  color: var(--spc-text);
  font: inherit;
  outline: none;
}

.spc-login-form input::placeholder {
  color: rgba(226,232,240,.62);
}

.spc-login-form input:focus {
  border-color: rgba(227,6,19,.78);
  box-shadow: 0 0 0 4px rgba(227,6,19,.14);
}

.spc-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 17px 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--spc-red), var(--spc-red-dark));
  color: white;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(227,6,19,.24);
}

.spc-submit:hover {
  transform: translateY(-1px);
}

.spc-login-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--spc-muted);
  font-size: 14px;
}

.spc-login-links a,
.spc-help a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(227,6,19,.55);
}

.spc-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 28px;
}

.spc-role-card {
  padding: 14px;
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
}

.spc-role-card strong {
  display: block;
  font-size: 13px;
}

.spc-role-card span {
  display: block;
  color: var(--spc-muted);
  font-size: 12px;
  line-height: 1.38;
  margin-top: 5px;
}

.spc-help {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: var(--spc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.spc-scene-caption {
  align-self: end;
  justify-self: end;
  margin: 0 clamp(20px, 4vw, 58px) clamp(20px, 4vw, 58px) 0;
  max-width: 430px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(9,20,34,.64);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.spc-scene-caption strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

.spc-scene-caption p {
  margin: 0;
  color: var(--spc-muted);
  line-height: 1.45;
}

/* Tablet login window:
   schlanker, fokussiert auf den Loginprozess, ohne Rollenkarten und lange Erklärtexte. */
@media (max-width: 980px), (pointer: coarse) and (max-width: 1180px) {
  body.spc-login-body {
    background:
      linear-gradient(180deg, rgba(7,17,29,.75) 0%, rgba(7,17,29,.88) 42%, rgba(7,17,29,.98) 100%),
      url('/assets/img/login-baeckermeister-real-portrait.jpg?v=016') center top / cover no-repeat,
      var(--spc-bg);
  }

  .spc-login-page {
    display: flex;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: 18px;
  }

  .spc-login-left {
    width: 100%;
    padding: 0;
    justify-content: center;
  }

  .spc-login-box {
    width: min(460px, 100%);
    border-radius: 28px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(9,20,34,.94), rgba(9,20,34,.88));
  }

  .spc-wordmark {
    margin-bottom: 20px;
    gap: 12px;
  }

  .spc-mark {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 15px;
  }

  .spc-mark::before {
    left: 14px;
    top: 13px;
    width: 23px;
    height: 24px;
  }

  .spc-mark::after {
    right: 13px;
    bottom: 13px;
    width: 8px;
    height: 8px;
  }

  .spc-wordmark strong {
    font-size: 28px;
  }

  .spc-wordmark small {
    font-size: 12px;
  }

  .spc-redline {
    width: 48px;
    height: 3px;
    margin-bottom: 18px;
  }

  .spc-login-box h1 {
    font-size: 34px;
  }

  .spc-lead {
    font-size: 15px;
    line-height: 1.45;
    margin-top: 12px;
  }

  .spc-login-form {
    margin-top: 20px;
    gap: 13px;
  }

  .spc-login-form input {
    padding: 14px 15px;
  }

  .spc-submit {
    padding: 15px 16px;
  }

  .spc-role-grid,
  .spc-scene-caption {
    display: none;
  }

  .spc-help {
    font-size: 12px;
    margin-top: 16px;
    padding-top: 14px;
  }

  .spc-login-links {
    display: grid;
    gap: 8px;
    font-size: 13px;
  }
}

/* Sehr kleine Tablets / Smartphones */
@media (max-width: 520px) {
  .spc-login-page {
    padding: 12px;
    align-items: end;
  }

  .spc-login-box {
    padding: 20px;
    border-radius: 24px;
  }

  .spc-wordmark strong {
    font-size: 25px;
  }

  .spc-wordmark small {
    display: none;
  }

  .spc-login-box h1 {
    font-size: 31px;
  }

  .spc-lead {
    display: none;
  }
}
