/* Achtung: CSS-Escaping für Klassen, die mit einer Zahl beginnen */
/* [2fa_select_method] */
.twofa-method-selection {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}

.twofa-method-selection h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.twofa-method-selection p {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
}

.twofa-method-selection form {
  margin: 10px 0;
}

.twofa-method-selection .button {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background-color: #0073aa;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
}

.twofa-method-selection .button:hover {
  background-color: #005177;
}

/* [2fa_enter_code] */

.twofa-enter-code {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}

.twofa-enter-code h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.twofa-enter-code p {
  font-size: 1em;
  color: #0073aa;
  margin-bottom: 20px;
}

.twofa-enter-code form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.twofa-enter-code label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333333;
  align-self: flex-start;
}

.twofa-enter-code input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 1em;
}

.twofa-links {
  display: flex;
  width: 80%;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.twofa-links a {
  text-decoration: none;
  color: #0073aa; /* oder dein Wunschblau */
  font-weight: bold;
}

.twofa-links a:hover {
  text-decoration: underline;
}

#verification_code {
  text-align: center;
}

.twofa-enter-code form input:focus:invalid, .twofa-enter-code form textarea:focus:invalid, .twofa-enter-code form select:focus:invalid {
    color: #555555;
    border-color: #cccccc;
}

.twofa-enter-code input[type="submit"] {
  padding: 12px 20px;
  background-color: #0073aa;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.twofa-enter-code input[type="submit"]:hover {
  background-color: #005177;
}

.twofa-error {
  color: #ff4d4d;
  font-weight: bold;
  text-align: center;
  transition: opacity 0.6s ease;
}

/* [2fa_qr_setup] */

.frontend-2fa {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Open Sans', sans-serif;
  color: #333333;
}

.frontend-2fa h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
  color: #1a1a1a;
}

.frontend-2fa p {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
  text-align: center;
}

.frontend-2fa code {
  display: block; /* macht margin auto wirksam */
  background: #f8f8f8;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 1.2em;
  color: #222;
  margin: 10px auto; /* zentriert horizontal */
  text-align: center; /* falls mehrzeilig */
}

.frontend-2fa img {
  display: block;
  margin: 20px auto;
  max-width: 200px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.frontend-2fa .backup-codes {
  margin-top: 30px;
  padding: 20px;
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
}

.frontend-2fa .backup-codes h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
  color: #444444;
}

.frontend-2fa .backup-codes ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
  text-align: center;
}

.frontend-2fa .backup-codes li {
  font-family: monospace;
  display: inline-block;
  background: #e8f0fe;
  padding: 6px 10px;
  margin: 4px;
  border-radius: 4px;
  color: #1a1a1a;
}

.frontend-2fa form {
  margin-top: 20px;
  text-align: center;
}

.frontend-2fa input[type="text"],
.frontend-2fa input[type="password"] {
  width: 100%;
  max-width: 280px;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  margin: 10px auto;
  font-size: 1em;
  display: block;
}

.frontend-2fa button {
  padding: 12px 20px;
  background-color: #0073aa;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.frontend-2fa button:hover {
  background-color: #005177;
}

/* Nachricht (Message-Farbe via Inline-Style) */
.frontend-2fa p[style*="color"] {
  font-weight: bold;
}