/* Stadtwerke Lindenfels – Kundenportal Login */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Segoe UI', -apple-system, sans-serif;
  font-size: 15px;
  background: #f3f3f3;
  color: #1b1b1b;
}

a { color: #1a7a3a; text-decoration: none; }
a:hover { text-decoration: underline; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Page layout ── */

#ms-page {
  flex: 1;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* Background illustration – right side */
#ms-bg {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  pointer-events: none;
}

.ms-bg-svg {
  width: 100%;
  height: 100%;
}

/* ── Login Card ── */

#ms-card {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 440px;
  min-width: 320px;
  flex-shrink: 0;
  padding: 44px 44px 32px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
}

/* Tenant branding */
.ms-tenant {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.ms-tenant span {
  font-size: 14px;
  color: #1b1b1b;
  font-weight: 600;
}

/* Heading */
.ms-heading {
  font-size: 24px;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

/* ── Warning Box ── */

.ms-warn-box {
  background: #fff8e0;
  border: 1px solid #e0c060;
  border-left: 3px solid #c88000;
  color: #5a3c00;
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 22px;
  border-radius: 2px;
}

.ms-warn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #c88000;
  margin-top: 1px;
}

.ms-warn-box strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #7a5000;
  margin-bottom: 3px;
}

/* ── Form (disabled state) ── */

.ms-form {
  pointer-events: none;
  user-select: none;
  opacity: 0.42;
}

/* Floating-label input */
.ms-field {
  position: relative;
  margin-bottom: 6px;
}

.ms-field input {
  width: 100%;
  height: 48px;
  padding: 20px 8px 6px;
  border: 1px solid #8a8a8a;
  border-radius: 2px;
  font-size: 15px;
  font-family: inherit;
  color: #1b1b1b;
  background: #fff;
  outline: none;
}

.ms-field label {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #616161;
  pointer-events: none;
  transition: all 0.1s;
}

.ms-field-hint {
  font-size: 13px;
  color: #616161;
  margin: 10px 0 24px;
}

.ms-link-disabled {
  color: #1a7a3a;
  cursor: default;
}

/* Actions row */
.ms-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ms-btn {
  background: #1a7a3a;
  color: #fff;
  border: none;
  padding: 0 20px;
  height: 36px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  cursor: not-allowed;
  border-radius: 2px;
}

/* Divider */
.ms-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 28px 0 20px;
}

.ms-back-hint {
  font-size: 13px;
  color: #616161;
  line-height: 1.6;
}

.ms-back-hint a {
  color: #1a7a3a;
  font-size: 13px;
}

/* ── Footer ── */

#ms-footer {
  flex-shrink: 0;
  padding: 10px 44px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  background: #f3f3f3;
  border-top: 1px solid #e0e0e0;
}

#ms-footer a,
#ms-footer .ms-footer-copy {
  font-size: 12px;
  color: #616161;
}

#ms-footer a:hover {
  color: #1a7a3a;
  text-decoration: none;
}

.ms-footer-copy {
  margin-left: auto;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  #ms-card {
    width: 100%;
    box-shadow: none;
    padding: 32px 24px;
  }
  #ms-bg { display: none; }
  #ms-footer { padding: 10px 24px; }
  .ms-footer-copy { display: none; }
}
