@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Radley:ital@0;1&display=swap');

body{
  background: #FFFF;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,1)   0%,
    rgb(154, 255, 193) 35%,
    rgb(154, 255, 193) 71%,
    rgba(255,255,255,1) 100%
);
  
}

:root {
  /* Base palette */
  --white: #fff;
  --black: #f2f2f7; /* Light iCloud-style background */
  /*--opaque-15: rgba(0, 0, 0, 0.15);
  --opaque-25: rgba(0, 0, 0, 0.25);
  --opaque-50: rgba(0, 0, 0, 0.5);*/
}

/* Light‑mode override */
@media (prefers-color-scheme: light) {
  :root {
    --black: #f2f2f7;
  }
}

/* ====== Global reset & typography ====== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(16px, 6vw, 20px);
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  width: 100vw;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Radley", serif;
  overflow: hidden;
}

/* Links & focus rings */
a {
  color: inherit;
  text-decoration: none;
  outline: 0;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--opaque-50);
  outline-offset: 2px;
}

/* Prevent default tables from flashing */
table { display: none; }

/* ====== Layout ====== */
#lnsp_login {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--black);
}

/* ----- Glass panel ----- */
.login-window {
  width: min(100%, 40rem);
  background-color: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  display: flex;
  padding: 0.5rem;
}

/* ----- Inner content ----- */
.login-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.input-container {
  width: min(90vw, 32rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 4vw, 2rem);
}

.logo-container img {
  width: 100%;
  height: auto;
}

#fehlerMeldung {
  color: rgb(188, 24, 24);
}

/* Text / icon row */
.field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.field img {
  width: 1rem;
  height: auto;
}

.input-container input {
  flex: 1;
  background: transparent;
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
}

/* Button */
.button {
  width: 100%;
  background: #009400;
  border: none;
  border-radius: 1rem;
  padding: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 148, 0, 0.25);
  transition: background 180ms ease, transform 100ms ease;
}

.button:hover {
  background: #0bb50b;
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button input {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.125rem;
  font-weight: bold;
  cursor: pointer;
}

/* ====== Responsive tweaks ====== */
@media (max-width: 480px) {
  body, html { overflow: auto; }

  .login-window { border-radius: 0.5rem; }
  .input-container { gap: 1rem; }
  .button { height: 2.75rem; }
}

@media (min-width: 1200px) {
  .login-window { max-width: 48rem; }
}

/* ====== Motion sensitivity ====== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/*** Desktop ***/
@media (min-width: 1200px) {
    #login .fs-3 {
        font-size: 1rem !important;
    }

    #login {
      max-width: 40%;
    }
}


/*** Tablet ***/
@media (min-resolution: 1.5dppx) and (max-resolution: 3dppx){
    #login .fs-3{
      font-size: 2.3rem !important;
    }

    .field{
      width: 100%;
      margin-bottom: 0.4rem !important;
      margin-top: 0.4rem !important;
    }

    .button{
      width: 100% !important;
      margin-top: 1rem !important;
      align-self: center;
    }

    #login {
      margin-bottom: 40% !important;
    }
  }
  
  /*** Phone ***/
@media (min-resolution: 3dppx) and (max-resolution: 9dppx) {
    #login .fs-3 {
      font-size: 2.1rem !important;
    }

    #login .fs-3{
      font-size: 2.3rem !important;
    }

    .logo-container{
      margin-bottom: 1rem;
    }

    .field{
      width: 100%;
      margin-bottom: 0.8rem !important;
      margin-top: 1rem !important;
    }

    .button{
      width: 100% !important;
      margin-top: 3.5rem !important;
      margin-bottom: 1.5rem;
      align-self: center;
    }

    #login {
      margin-bottom: 55% !important;
    }
  }