/* ==================================================
   RESET & GRUNDSTILE
   ================================================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  background: url('../bilder/hgApp3B.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* ==================================================
   CONTAINER
   ================================================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  perspective: 800px;
  padding: 20px;
}

/* ==================================================
   FORM – SILBER-VERLAUF & GEBÜRSTETE OBERFLÄCHE
   ================================================== */
form {
  width: 100%;
  max-width: 320px;
  padding: 30px;
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.05) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(145deg,#333 0%,#444 50%,#333 100%);
  border: 1px solid #bbb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2),
              inset 0 2px 0 rgba(255,255,255,0.6);
  transform-style: preserve-3d;
  transform: rotateX(2deg) rotateY(-2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  
}

form label{ color: #fff; }

form::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%,rgba(255,255,255,0.3),transparent 60%);
  transform: translateZ(50px) rotateX(90deg);
  pointer-events: none;
  mix-blend-mode: screen;
}

.login-container:hover form {
  transform: rotateX(0deg) rotateY(0deg) translateZ(20px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25),
              inset 0 2px 0 rgba(255,255,255,0.7);
}

/* ==================================================
   TITEL
   ================================================== */
h2 {
  margin: 0 0 20px;
  text-align: center;
  color: #fffefe92;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
  font-size: 1.5rem;
}

/* ==================================================
   FORM-GROUP
   ================================================== */
.form-group { margin-bottom: 15px;}
.form-group a{color: #fffefea6;}

label {
  display: block; margin-bottom: 5px;
  color: #444; font-size: 0.9rem;
}

/* ==================================================
   INPUT-FELDER
   ================================================== */
input[type="email"],
input[type="password"] {
  width: 100%; padding: 12px;
  box-sizing: border-box;
  border: 1px solid #bbb; border-radius: 4px;
  background: #f9f9f9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: border-color 0.2s;
  font-size: 1rem;
}
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #888; outline: none;
}

/* ==================================================
   BUTTON
   ================================================== */
button {
  width: 100%; padding: 12px; font-size: 1rem;
  color: #222;
  background: linear-gradient(180deg,#fafafa,#e0e0e0);
  border: 1px solid #888; border-radius: 4px;
  cursor: pointer; text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  transition: background 0.2s;
}
button:hover:not(:disabled) {
  background: linear-gradient(180deg,#e0e0e0,#ccc);
}
button:disabled { opacity: .6; cursor: not-allowed; }

/* ==================================================
   LINKS, FEHLERMELDUNGEN & COUNTDOWN
   ================================================== */
.forgot-password {
  display: block; text-align: center;
  margin-top: 15px; color: #555;
  text-decoration: none; font-size: 0.9rem;
}
.forgot-password:hover { color: #333; text-decoration: underline; }

.error { color: #d32f2f; margin-bottom: 10px;
         text-align: center; font-weight: bold; font-size: 0.9rem; }

#lock-counter {
  text-align: center; margin-bottom: 15px;
  font-weight: bold; color: #b71c1c; font-size: 0.95rem;
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 768px) {
  form { max-width: 70%; padding: 20px; }
  h2  { font-size: 1.3rem; }
  input[type="email"],
  input[type="password"],
  button { font-size: .95rem; padding: 10px; }
}
@media (max-width: 480px) {
  .login-container { align-items: flex-start; padding-top: 40px; }
  .login-container:hover form { transform: none !important; }
  form { padding: 15px; transform: none !important; max-width: 280px; }
  h2  { font-size: 1.1rem; margin-bottom: 15px; }
  .form-group { margin-bottom: 12px; }
  label, .forgot-password, .error, #lock-counter { font-size: .85rem; }
  input[type="email"],
  input[type="password"],
  button { padding: 8px; font-size: .9rem; }
}

