:root{
    --font-sans: "Montserrat", sans-serif;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --fg: #111827;
    --muted: #6b7280;
    --primary: #6ea7c4;
    --primary-hover: #006598;
    --accent-border: #F3C400;
    --brand-blue: #006598;
    --brand-yellow: #F3C400;
    --radius: 0px;
    --shadow: 0 6px 24px rgba(0,0,0,0.08);
  }

  *{ box-sizing: border-box; }

  html, body{
    margin:0;
    padding:0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    height: 100%;
  }

  .login-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
  }

  .login-card{
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 100%;
    text-align: center;
  }

  .login-card h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem; /* kleinerer Abstand, da Strich folgt */
  line-height: 1.2;
  text-align: left; /* linksbündig */
}

.headline-divider {
  height: 2px;
  width: 50%;                /* halbe Breite */
  background-color: #F3C400; /* Gelb */
  margin: 0 0 2rem 0;        /* nur Abstand nach unten */
}


  .login-card h1 span{
    color: var(--brand-blue);
  }

  .login-form{
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .login-form label{
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .input-group{
    position: relative;
    margin-bottom: 16px;
  }

  .input-group input{
    width: 100%;
    padding: 12px;
    padding-right: 40px; /* Platz für das Icon */
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    font-size: 1rem;
  }

  .input-group input:focus{
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(110,167,196,0.3);
  }

  .toggle-password{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    fill: var(--muted);
  }

  .forgot{
    font-size: .85rem;
    color: var(--brand-yellow);
    text-decoration: none;
    margin-bottom: 20px;
    align-self: flex-end;
    font-weight: 600;
  }

  .btn{
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    border-bottom: 3px solid #ffffff;
    transition: background .2s ease, border-bottom-color .2s ease;
  }

  .btn:hover{
    background: var(--primary-hover);
    border-bottom-color: var(--accent-border);
  }

  .login-footer{
    margin-top: 24px;
    font-size: .8rem;
    color: var(--muted);
  }

  .login-footer a{
    color: var(--muted);
    text-decoration: none;
  }

  .login-footer a:hover{
    text-decoration: underline;
  }

/* Fullscreen background image and right-shifted card (PDF Seite 1) */
.page-login .login-wrapper{
  min-height: 100vh;
  background-image: url("https://cartesy.de/wp-content/uploads/bg-login.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* push card to the right */
  padding: 40px 8vw; /* space from edges; matches topbar image */
  position: relative;
}

.page-login .login-logo{
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-block;
}

.page-login .login-logo img{
  height: 68px;
  width: auto;
  display: block;
}

.page-login .login-card{
  margin-right: 6vw; /* subtle extra push from right */
  box-shadow: var(--shadow);
}

/* Mobile: center the card */
@media (max-width: 768px){
  .page-login .login-wrapper{
    justify-content: center;
    padding: 24px;
  }
  .page-login .login-card{
    margin-right: 0;
  }
}


/* Top-right text links on Login */

.page-login .login-toplinks a{
  color: #ffffff;
  text-decoration: none;
}
.page-login .login-toplinks a:hover{ text-decoration: underline; text-decoration-color:#ffffff; }

@media (max-width: 768px){
  
}

/* v19: top-right nav aligned like v15, horizontal middle to logo */
.page-login .login-wrapper{ position: relative; }
.page-login .login-toplinks{
  position: absolute !important;
  top: 24px !important;                 /* right up */
  right: calc(8vw + 6vw) !important;    /* same offset as login card */
  display: flex;
  gap: 24px;
  align-items: center;                  /* vertical center line within this bar */
  height: 98px;                         /* match logo height */
  color: #fff;
  z-index: 3;
}
.page-login .login-toplinks a{ color:#fff; text-decoration:none; }
.page-login .login-toplinks a:hover{ text-decoration:underline; text-decoration-color:#fff; }

@media (max-width: 768px){
  .page-login .login-toplinks{
    right: 24px !important;
    height: auto;
    gap: 16px;
  }
}
