* {
  box-sizing: border-box;
}


body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f0f0;
}

h2 {
  font-size: 25px;
  margin: 0px 0px 20px 0px;
}

form {
  border: 3px solid #f1f1f1;
  border-radius: 10px;
  background-color: #f0f0f0;
  padding: 10px;
}
label {
  font-size: 20px;
}

input[type=text], input[type=password], input[type=email] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 18px;
  border-radius: 10px;
}

a {
  text-decoration: none;
}

.button {
  background-color: #0489aa;
  color: white;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
  border-radius: 10px;
  text-align: center;
}

button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 30px 0px 10px 0px;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
  border-radius: 10px;
}

button:hover {
  opacity: 0.8;
}

.cancelbtn {
  width: auto;
  padding: 10px 18px;
  background-color: #f44336;
}

.imgcontainer {
  text-align: center;
  padding: 24px 0 24px 0;
  background-color: #f1f1f1;
}

img.avatar {
  width: 50%;
  max-width: 350px;
  /*border-radius: 50%;*/
}

.container {
  background-color: #f1f1f1;
  padding: 10px;
}

span.psw {
  float: right;
  padding-top: 16px;
}

/* The message box is shown when the user clicks on the password field */
#message {
  display:block; /*none*/
  background: #f1f1f1;
  color: #000;
  position: relative;
  padding: 5px;
  margin-top: 5px;
}

#message p {
  padding: 0px 35px;
  font-size: 14px;
  margin: 0px;
}
#message h4 {
  margin: 0px 0px 5px 0px;
  font-size: 14px;
}

/* Add a green text color and a checkmark when the requirements are right */
.valid {
  color: green;
}

.valid:before {
  position: relative;
  left: -35px;
  content: "✔";
}

/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
  color: red;
}

.invalid:before {
  position: relative;
  left: -35px;
  content: "✖";
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 400px) {
  span.psw {
     display: block;
     float: none;
  }
  .cancelbtn {
     width: 100%;
  }

  .zentriertes-div {
    padding: 15px;
    font-size: 0.95rem;
  }

}


.zentriertes-div {
  width: 90%;
  max-width: 350px;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
  margin: 10px;
}

.alignLeft {
  text-align: left;
}

/* =========================================
   Aktion-Buttons unterhalb von "Anmelden"
   ========================================= */
.action-row {
  margin-top: 12px;
  display: block;              /* Standard: 1-Spalte (volle Breite) */
}

/* Basis-Button-Stil (gilt für <a class="button"> und <div class="button">) */
.action-row .button {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: #0489aa;
  color: #fff;
  font: inherit;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  text-decoration: none;

  /* Umbrüche & Silbentrennung (kein per-Zeichen-Umbruch) */
  white-space: normal;
  hyphens: auto;               /* benötigt lang="de" am html/Container */
  -webkit-hyphens: auto;
  overflow-wrap: break-word;   /* brich bei Wortgrenzen / langen Wörtern */
  word-break: normal;          /* KEIN break-all */
  min-width: 0;                /* wichtig bei Grid/Flex, damit Schrumpfen erlaubt ist */
}

/* 2-Spalten-Layout: nur wenn .two-up am Container gesetzt ist */
.action-row.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;                   /* gleicher Abstand zwischen den Buttons */
  align-items: stretch;        /* gleiche Höhe */
}

/* In 2-Spalten-Ansicht: Buttons füllen die Spalten gleichmäßig */
.action-row.two-up .button {
  width: auto;                 /* Grid regelt die Breite, nicht mehr 100% */
}

/* Verhindere, dass ein hartes <br> das Layout "zerhackt" */
.action-row.two-up #installBtn br {
  display: none;
}

/* Sehr schmale Viewports: wieder einspaltig, falls es zu eng wird */
@media (max-width: 360px) {
  .action-row.two-up {
    grid-template-columns: 1fr;
  }
}

/* Fokus-Style (Usability) */
.action-row .button:focus-visible {
  outline: 3px solid #0ea5b7;
  outline-offset: 2px;
}

#installBtn[hidden] { display: none !important; }