/* Login-Teaser — 1:1 Optik Brandenburg-App-Login (#ndt-login-overlay) */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  background: #ebecee;
  color: #1a1a1a;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#page.login-teaser-page {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 !important;
  background: #ebecee !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.login-teaser-main {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

/* TYPO3 frame chrome kill */
.login-teaser-main .frame,
.login-teaser-main .frame-default,
.login-teaser-main .frame-type-html {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.login-teaser-main .frame > header { display: none !important; }
.login-teaser-main .ce-textpic,
.login-teaser-main .ce-gallery,
.login-teaser-main .ce-bodytext {
  overflow: visible !important;
}

.login-shell {
  display: flex;
  align-items: stretch;
  width: min(440px, 100%);
  max-height: none;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
  border: 1px solid #e8e8e8;
  background: #fff;
  flex: 0 0 auto;
  margin: 0 auto;
}
.login-cards-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.login-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: 380px;
  box-shadow: none;
}
.login-card-logo {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 32px;
  line-height: 0;
  text-decoration: none;
}
.login-card-logo img {
  display: block;
  height: 80px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}
.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  font-size: 0.8rem;
  color: #535352;
  margin-bottom: 5px;
  font-weight: 700;
}
.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  background: #fff !important;
  color: #1a1a1a !important;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  opacity: 1 !important;
  -webkit-text-fill-color: #1a1a1a;
  cursor: default;
}
.login-field input:read-only,
.login-field input[readonly] {
  background: #fff !important;
  color: #1a1a1a !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #1a1a1a;
}
.login-field input::placeholder {
  color: #8a847c;
  opacity: 1;
}
.login-field input:focus {
  border-color: #B50C40;
  box-shadow: 0 0 0 3px rgba(181, 12, 64, 0.08);
}
.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: #B50C40;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: default;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 1 !important;
  transition: background .15s;
}
.login-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}
.login-switch .btn-link {
  background: none;
  border: none;
  padding: 0;
  color: #B50C40;
  font: inherit;
  font-weight: 700;
  cursor: default;
  text-decoration: none;
  opacity: 1 !important;
}
.login-switch .btn-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-legal-footer {
  width: min(440px, 100%);
  flex: 0 0 auto;
  margin-top: 1.5rem;
  padding-top: 0;
  box-sizing: border-box;
  text-align: left;
  font-family: "Lato", Arial, Helvetica, sans-serif;
}
.sc-legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  font-size: 13px;
  line-height: 1.5;
  color: #1a1a1a;
}
.sc-legal-footer__links a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 400;
}
.sc-legal-footer__links a:hover {
  color: #B50C40 !important;
}
.sc-legal-footer__sep {
  color: #666;
  user-select: none;
}
.sc-legal-footer__copy {
  margin: 0.65rem 0 0;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}


.login-teaser-hint {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #666;
}
@media (max-width: 760px) {
  #page.login-teaser-page { padding: 20px 16px 16px; }
  .login-cards-wrap { padding: 28px 20px; }
  .login-card-logo { margin-bottom: 24px; }
  .login-card-logo img { height: 56px; max-width: min(220px, 100%); }
}
