:root{
  --bg:#070c0e;
  --fg:#999999;
  --fg-strong:rgba(255,255,255,0.90);
  --muted:#999999;
  --muted2:#999999;

  --line:rgba(50,120,150,0.35);
  --field-bg:rgba(0,0,0,0.20);

  --btn:#3F9C9A;
  --btn2:#3F9C9A;

  --accent:#3F9C9A; /* Linkfarbe */
  --err:#e36b6b;
  --ok:#84d19b;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  color:var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  padding-bottom:110px; /* Platz für fixen Footer (leicht höher + Luft) */
}


/* Typography exceptions: intentionally retain their previous font rendering. */
.hero-title{
  font-family: initial;
}

.field,
.btn-primary{
  font-family: Arial, Helvetica, sans-serif;
}

/* =====================================================
   VIDEO BACKGROUND
===================================================== */

.auth-bg-video{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
}

.auth-bg-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  /* Start unsichtbar → Fade kommt via JS */
  opacity: 0;
  transition: opacity 2.5s ease-in-out;

  /* leichte Dämpfung für Grey-Ocean-Look */
  filter: brightness(0.85) contrast(1.05) saturate(0.9);
}

/* =====================================================
   AUTH LAYOUT
===================================================== */

.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 16px;
  background: transparent;
  position: relative;
}

.auth-wrap::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* GREY OCEAN Augen-/Linseneffekt */
  background:
    radial-gradient(
      ellipse 60% 29% at 50% 50%,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.00) 24%,
      rgba(0,0,0,0.16) 40%,
      rgba(0,0,0,0.64) 67%,
      rgba(0,0,0,0.97) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0,0,0,0.86) 0%,
      rgba(0,0,0,0.34) 27%,
      rgba(0,0,0,0.00) 43%,
      rgba(0,0,0,0.00) 57%,
      rgba(0,0,0,0.34) 73%,
      rgba(0,0,0,0.88) 100%
    );
}

/* sicherstellen, dass Panel/Form über dem Overlay liegt */
.auth-wrap > *{ position: relative; z-index: 1; }

.auth-panel{
  width:min(900px, 92vw);
  text-align:center;
  padding:14px 12px;
}

.hero-title{
  margin:0 0 18px;
  font-size:56px;
  font-weight:400;
  letter-spacing:0.4px;
  color:var(--fg-strong);
}

.hero-copy{
  margin:0 auto 44px;
  max-width:820px;
  line-height:1.7;
  font-size:15px;
  color:var(--muted);
}

.subhead{
  margin:0 0 16px;
  font-size:15px;
  color:var(--muted2);
}

.form{
  width:min(600px, 92vw);
  margin:0 auto;
}

.field{
  width:100%;
  margin:0 0 18px;
  padding:16px 18px;
  border-radius:2px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.80);
  color:#000000;
  font-size:18px;
}

.field::placeholder{color:rgba(0,0,0,0.58); opacity:1;}
.field:focus{
  outline:none;
  border-color:rgba(80,170,205,0.60);
}

.password-field-wrap{
  position:relative;
  width:100%;
  margin:0 0 18px;
}

.password-field-wrap .field{
  margin-bottom:0;
  padding-right:56px;
}

.password-toggle{
  position:absolute;
  top:50%;
  right:16px;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  padding:3px;
  border:0;
  background:transparent;
  color:#333333;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.password-toggle:hover,
.password-toggle:focus-visible{
  color:#000000;
  outline:none;
}

.password-toggle svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.password-toggle .eye-closed{display:none;}
.password-toggle[aria-pressed="true"] .eye-open{display:none;}
.password-toggle[aria-pressed="true"] .eye-closed{display:block;}

/* Keep browser-autofilled credentials readable and visually consistent. */
.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus{
  -webkit-text-fill-color:#000000;
  -webkit-box-shadow:0 0 0 1000px rgba(255,255,255,0.80) inset;
  transition:background-color 9999s ease-out 0s;
}

.row{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:34px;
  flex-wrap:wrap;
}

.btn-primary{
  min-width:190px;
  padding:14px 18px;
  border-radius:2px;
  border:1px solid #3F9C9A;
  background:#3F9C9A;
  color:#ffffff;
  font-weight:700;
  font-size:18px;
  cursor:pointer;
}

.btn-primary:hover{
  background:#ffffff;
  border-color:#ffffff;
  color:#000000;
  filter:none;
}

.check{
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--muted2);
  font-size:14px;
}

.check input{
  width:18px;
  height:18px;
}

.links{
  width:min(600px, 92vw);

  /* Mehr Abstand nach oben vom Button */
  margin:44px auto 0;

  text-align:left;
  color:var(--muted2);
  font-size:14px;

  /* Mehr Luft zwischen den beiden Zeilen */
  line-height:2.2;
}


.links-center{
  text-align:center;
}

.link-accent{
  color:#3F9C9A;
  text-decoration:none;
  text-shadow:none;
}

.link-accent:hover{
  color:#ffffff;
  text-decoration:none;
  text-shadow:none;
}

/* Messages */
.msg{
  margin-top:14px;
  min-height:18px;
  font-size:13px;
  color:var(--muted2);
  text-align:center;
}
.msg.err{color:var(--err)}
.msg.ok{color:var(--ok)}

/* Form grids */
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.grid2 .password-field-wrap{
  margin-bottom:0;
}

/* Checks block for register page */
.checks{
  width:100%;
  margin:6px 0 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  text-align:left;
}

/* ---------------------------------------------------
   MODAL (Success / Error)
--------------------------------------------------- */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modal-box{
  width:min(520px, 92vw);
  padding:22px 24px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(8, 20, 24, .92);
  box-shadow:0 18px 70px rgba(0,0,0,.65);
  text-align:center;
}

.modal-box.success{
  border-color:rgba(0, 200, 120, .6);
}

.modal-title{
  font-size:18px;
  margin:0 0 8px 0;
  color:rgba(255,255,255,0.92);
}

.modal-text{
  font-size:14px;
  opacity:.9;
  line-height:1.35;
}

.modal-hint{
  margin-top:10px;
  font-size:12px;
  color:#999999;
}

/* =====================================================
   FIXED FOOTER (Feinschliff: transparenter, Glow, höher)
===================================================== */

.site-footer{
  position:fixed;
  left:0;
  right:0;

  /* minimal höher */
  bottom:14px;

  text-align:center;
  z-index:5;

  /* transparenter + sehr weich */
  padding:10px 10px;
  color:#999999;

  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  box-shadow:none;
}

.footer-inner{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;

  /* ganz leichter Glow auf der gesamten Zeile */
  text-shadow:none;
}

.footer-sep{
  opacity:0.35;
}

.site-footer a{
  color:#3F9C9A;
  text-decoration:none;
  transition:color .15s ease;
  text-shadow:none;
}

.site-footer a:hover{
  color:#ffffff;
  text-decoration:none;
  transform:none;
  text-shadow:none;
}

.site-footer img{
  display:block;
  opacity:0.80;
  transition:none;
  filter:none;
}

.site-footer a:hover img{
  opacity:0.80;
  transform:none;
  filter:none;
}

@media (max-width:740px){
  .hero-title{font-size:42px}
  .links{text-align:left}
  .grid2{grid-template-columns:1fr}
  body{ padding-bottom:130px; } /* mehr Luft am Handy */
}

.hidden{display:none}

.status-development{color:#ff0000;font-weight:700;}


.field-invalid{
  border-color:#ff5a5a !important;
}

.modal-box.error{
  border-color:rgba(255,90,90,.70);
}

.modal-box.error .modal-title{
  color:#ffffff;
}

.modal-box.error .modal-text,
.modal-box.error .modal-hint{
  color:#999999;
}

.modal-box{
  position:relative;
}

.modal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:34px;
  height:34px;
  padding:0;
  border:0;
  background:transparent;
  color:#ffffff;
  font-family:Arial, Helvetica, sans-serif;
  font-size:30px;
  font-weight:400;
  line-height:30px;
  cursor:pointer;
  opacity:.85;
}

.modal-close:hover,
.modal-close:focus-visible{
  color:#3F9C9A;
  opacity:1;
  outline:none;
}


/* =====================================================
   LEGAL / INFORMATION PAGES
   Dark GREY OCEAN glass bubble for long-form content
===================================================== */

.auth-legal .auth-panel{
  width:min(1160px, 96vw);
}

.auth-legal .legal-wrap{
  width:min(1080px, 94vw);
  margin-left:auto;
  margin-right:auto;
}

.auth-legal .legal-glass{
  display:block;
  width:100%;
  height:52vh;
  max-height:560px;
  min-height:360px;
  padding:24px 30px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(0,0,0,0.58);
  color:#d0d0d0;
  -webkit-text-fill-color:#d0d0d0;
  caret-color:#d0d0d0;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  overflow-y:auto;
  overflow-x:hidden;
  text-align:center;
  scrollbar-width:thin;
  scrollbar-color:#3F9C9A transparent;
}

.auth-legal .legal-glass:focus{
  outline:none;
  border-color:rgba(255,255,255,0.12);
}

/* WebKit/Blink scrollbar: transparent track, petrol thumb, no buttons/arrows */
.auth-legal .legal-glass::-webkit-scrollbar{
  width:10px;
}

.auth-legal .legal-glass::-webkit-scrollbar-track{
  background:transparent;
}

.auth-legal .legal-glass::-webkit-scrollbar-thumb{
  background:#3F9C9A;
  border-radius:999px;
  border:3px solid transparent;
  background-clip:padding-box;
}

.auth-legal .legal-glass::-webkit-scrollbar-thumb:hover{
  background:#ffffff;
  border:3px solid transparent;
  background-clip:padding-box;
}

.auth-legal .legal-glass::-webkit-scrollbar-button{
  width:0;
  height:0;
  display:none;
}

@media (max-width:740px){
  .auth-legal .auth-panel{
    width:min(100%, 96vw);
  }

  .auth-legal .legal-wrap{
    width:min(100%, 94vw);
  }

  .auth-legal .legal-glass{
    height:48vh;
    max-height:500px;
    min-height:320px;
    padding:20px 20px;
  }
}


/* Legal-page vertical fit: keep browser page fixed where viewport allows it.
   Long text scrolls only inside the glass panel. */
@media (min-width:741px) and (min-height:700px){
  .auth-legal{
    overflow:hidden;
  }

  .auth-legal .auth-wrap{
    min-height:calc(100vh - 96px);
    padding-top:24px;
    padding-bottom:18px;
    align-items:flex-start;
  }

  .auth-legal .auth-panel{
    padding-top:4px;
    padding-bottom:4px;
  }

  .auth-legal .hero-title{
    margin-bottom:12px;
  }

  .auth-legal .hero-copy{
    margin-bottom:22px;
  }

  .auth-legal .links{
    margin-bottom:4px;
  }
}
