:root {
  --is-red:          #e30613;
  --is-green:        #11961f;
  --is-blue:         #164194;
  --bg-dark:         #0f172a;
  --text-dark:       #3c3c3b;
  --text-light:      #64748b;
  --white:           #ffffff;
  --border:          rgba(255,255,255,0.22);
  --panel-bg-solid:  rgba(255,255,255,0.9);
  --shadow:          0 24px 64px rgba(0,0,0,0.30);
  --radius-xl:       28px;
  --radius-lg:       18px;
  --radius-md:       12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--white);

  background-color: var(--bg-dark);

}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: inherit;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#UMELogon {
  display: block;
  width: 100%;
}

.page-shell {
  margin: 0 auto;
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  grid-template-rows: 1fr;
  min-height: 600px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255,255,255,0.16);
}


.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: transparent;
}

.login-card {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 32px 28px 24px;
  color: var(--text-dark);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.logo-wrap {
  margin-bottom: 22px;
}

.portal-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.5;
}


.form-group {
  position: relative;
  margin-bottom: 20px;
}

.input-wrap {
  position: relative;
  width: 100%;
}

.input-wrap input {
  width: 100%;
  height: 58px;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid #dbe2ea;
  border-radius: 12px;
  outline: none;
  padding: 20px 48px 6px 16px;
  font-size: 16px;
  color: #0f172a;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

.input-wrap input:focus {
  border-color: var(--is-blue);
  border-width: 2px;
  background: #ffffff;
}

.floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 2;
}

.input-wrap input:focus ~ .floating-label,
.input-wrap input:not(:placeholder-shown) ~ .floating-label {
  top: 10px;
  transform: translateY(0);
  font-size: 11px;
  font-weight: 700;
  color: var(--is-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.password-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-hidden {
  display: none;
}


.login-button {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #172968, #164194);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  box-shadow: 0 10px 24px rgba(22,65,150,0.22);
  -webkit-tap-highlight-color: transparent;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(22,65,150,0.30);
  filter: brightness(1.04);
}

.login-button:active {
  transform: translateY(0);
}


.forgot-password-wrap {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 4px;
}

.link-forgot {
  font-size: 14px;
  color: #00266a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  padding: 4px 8px;
}

.link-forgot:hover {
  color: var(--is-blue);
  text-decoration: underline;
  transform: translateY(-1px);
}


.footer-row {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.10);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #3c3c3b;
  font-size: 12px;
}

.footer-row a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-row a:hover {
  color: #0f172a;
  text-decoration: underline;
}


.hero-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 56px;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(0,85,184,0.72) 0%,
    rgba(15,23,42,0.44) 36%,
    rgba(226,0,26,0.44) 100%
  );
  z-index: 0;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(255,255,255,0.13), transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-title {
  margin: 0 0 18px 0;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-text {
  margin: 0 0 28px 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

/* ALTE HERO-LIST
.hero-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255,255,255,0.95);
}

.hero-list .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
*/

/* --- PRODUCT FAMILY BOX --- */

.product-family-box {
  margin-top: 24px;
  padding: 18px 20px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-family-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: 6px;
}

.product-family-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-list .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-list .hero-list-more {
  grid-column: 1 / -1;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}

.hero-list .hero-list-more .check {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
}

/* --- JUBILÄUM BILD --- */

.hero-jubilee-img {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 150px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.login-card {
  animation: fadeInUp 0.45s ease both;
}



@media (max-width: 1024px) {
  body {
    align-items: flex-start;
    padding: 20px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    overflow: visible;
    border-radius: 24px;
  }


  .login-panel {
    order: 1;
    padding: 40px 24px;
    min-height: 480px;
  }

  .hero-panel {
    order: 2;
    align-items: flex-start;
    min-height: 280px;
    padding: 40px;
  }

  .hero-title {
    font-size: 34px;
  }
}


@media (max-width: 767px) {

  body {
    padding: 0;
    align-items: stretch;
  }

  .page-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 100dvh;
    border-radius: 0;
    max-width: none;
    margin: 0;
  }

  .hero-panel {
    display: none;
  }

  .login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    min-height: 100dvh;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 28px 20px 20px;
    border-radius: 18px;
  }

  .portal-logo { max-width: 170px; }
}


@media (max-height: 500px) and (orientation: landscape) {

  body { padding: 0; }

  .page-shell {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    border-radius: 0;
    max-width: none;
    margin: 0;
  }

  .hero-panel { display: none; }

  .login-panel {
    display: flex;
    padding: 16px;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
  }

  .login-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
  }

  .logo-wrap        { margin-bottom: 14px; }
  .login-subtitle   { margin-bottom: 14px; }
  .form-group       { margin-bottom: 12px; }
  .input-wrap input { height: 50px; }
  .login-button     { min-height: 44px; font-size: 16px; }
}


@media (max-width: 380px) {
  .login-card {
    padding: 22px 14px 16px;
    border-radius: 16px;
  }

  .portal-logo {
    max-width: 150px;
  }

  .login-title {
    font-size: 20px;
  }
}


@media (min-width: 1400px) {
  .page-shell {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 52px;
  }
}

/* --- ERROR / INFO MESSAGES --- */

.login-error-message {
  margin-bottom: 20px;
}

/* Basis Container */
.login-error-message .urMsgBarErr,
.login-error-message .urMsgBarInfo{
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 14px 16px;
  border-radius: 12px;

  backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}

/* SAP Defaults entfernen */
.login-error-message .urMsgBarImgError,
.login-error-message .urMsgBarImgInfo,
.login-error-message .urMsgBarImgOk{
  background: none !important;
}

.login-error-message img {
  display: none !important;
}

/* Text */
.login-error-message .urTxtMsg {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.login-error-message .urMsgBarErr:has(.urMsgBarImgError) {
  background: rgba(227, 6, 19, 0.08);
  border-left: 4px solid var(--is-red);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.login-error-message .urMsgBarInfo:has(.urMsgBarImgInfo),
.login-error-message .urMsgBarOk:has(.urMsgBarImgOk),
.login-error-message .urMsgBarErr:has(.urMsgBarImgOk) {
  background: rgb(6 227 221 / 8%);
  border-left: 4px solid var(--is-green);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgb(55 201 23 / 5%);
}

.login-error-message .urMsgBarErr + .urMsgBarErr,
.login-error-message .urMsgBarErr + .urMsgBarInfo, 
.login-error-message .urMsgBarErr + .urMsgBarOK {
  margin-top: 8px;
}

.login-error-message .urMsgBarErr:has(.urMsgBarImgError) .urTxtMsg{
  color: #7a0b12;
  font-weight: 500;
}
.login-error-message .urMsgBarInfo:has(.urMsgBarImgInfo) .urTxtMsg,
.login-error-message .urMsgBarInfo:has(.urMsgBarImgOk) .urTxtMsg {
  color: #14601f;
  font-weight: 500;
}
.login-error-message .urMsgBarImgError::before {
  color: var(--is-red);
}

/* Custom Icon */
.login-error-message .urMsgBarImgError::before{
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-top: 2px;
  background: no-repeat center/contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e30613' stroke-width='2'>\
<path stroke-linecap='round' stroke-linejoin='round' d='M12 9v4m0 4h.01M10.29 3.86l-7.4 12.8A1 1 0 003.74 18h16.52a1 1 0 00.85-1.54l-7.4-12.8a1 1 0 00-1.7 0z'/>\
</svg>");
}

/* Custom Icon */
.login-error-message .urMsgBarImgInfo::before,
.login-error-message .urMsgBarImgOk::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-top: 2px;
  background: no-repeat center/contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2314601f' stroke-width='2'>\
<path stroke-linecap='round' stroke-linejoin='round' d='M12 9v4m0 4h.01M10.29 3.86l-7.4 12.8A1 1 0 003.74 18h16.52a1 1 0 00.85-1.54l-7.4-12.8a1 1 0 00-1.7 0z'/>\
</svg>");
}