/* -*- coding: utf-8 -*- */

/* Basis-Styles für alle Bildschirmgrößen */
:root {
  --bg-color: #f0f2f5;
  --bg-card: #ffffff;
  --primary-color: #3b3663;
  --primary-dark: #2d2b4a;
  --secondary-color: #f46036;
  --secondary-dark: #e34d36;
  --text-color: #333333;
  --border-radius: 12px;
  --card-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Gemeinsame Styles */
.login-register-container {
  padding: 20px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Tab-Styles für alle Bildschirmgrößen */
.mobile-tabs {
  display: flex !important;
  justify-content: center;
  margin-bottom: 0;
  gap: 0;
  width: 100%;
  border-radius: 12px 12px 0 0; /* Nur oben abgerundete Ecken */
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  z-index: 10;
  position: relative;
}

.mobile-tab {
  flex: 1;
  padding: 15px 20px;
  background-color: #e9ecef;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  text-align: center;
  font-weight: 600;
  border: none;
  color: #333;
}

.mobile-tab.active {
  background-color: var(--primary-color);
  color: white;
}

/* Wrapper und Card-Switch Styles */
.wrapper {
  width: 100%;
  max-width: 420px; /* Etwas breiter für Desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px; /* Abstand von oben */
}

.card-switch {
  width: 100%;
  height: auto;
  perspective: none;
  margin-top: 0; /* Kein Abstand zu den Tabs */
}

.switch {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transform: none;
}

/* Den grauen Balken und Slider immer ausblenden */
.card-side, .slider {
  display: none;
}

.flip-card__inner {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: auto;
  transform-style: flat;
  background-color: transparent;
  box-shadow: none;
  border: none;
  position: relative;
  transform: none !important; /* Verhindert das Flippen */
}

.flip-card__front, .flip-card__back {
  width: 100%;
  height: auto;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 0 0 12px 12px; /* Nur unten abgerundete Ecken */
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  position: relative;
  backface-visibility: visible;
  transform: none !important; /* Verhindert das Flippen */
  min-height: 400px; /* Mindesthöhe für Formulare */
  margin-top: 0; /* Kein Abstand zu den Tabs mehr */
}

/* Standardmäßig nur ein Formular anzeigen */
.flip-card__front {
  display: block;
}

.flip-card__back {
  display: none;
}

/* Wenn .toggle aktiviert ist, die Rückseite anzeigen und Vorderseite verstecken */
.toggle:checked ~ .flip-card__inner .flip-card__front {
  display: none;
}

.toggle:checked ~ .flip-card__inner .flip-card__back {
  display: block;
}

/* Gemeinsame Form-Styles */
.title {
  margin: 0 0 30px 0;
  font-size: 24px;
  text-align: center;
  color: #333;
}

.flip-card__form {
  gap: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-group {
  width: 100%;
  margin-bottom: 15px;
}

.flip-card__input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.flip-card__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 54, 99, 0.25);
}

.flip-card__btn {
  width: 100%;
  margin: 15px 0;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 8px;
  background-color: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.flip-card__btn:hover {
  background-color: var(--secondary-color);
}

/* Extra Spacing für Formularfelder */
.form-group {
  margin-bottom: 20px;
}

/* Passwort vergessen Link */
.text-end.mb-3 {
  margin-top: 5px;
  text-align: right !important;
}

.text-end.mb-3 a {
  color: #2d8cf0;
  text-decoration: none;
}

.text-end.mb-3 a:hover {
  text-decoration: underline;
}

/* Fehlermeldungen */
.text-danger {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
}

.toggle {
  display: none;
}
