* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 30px 20px;
  color: #1a2a33;
}

/* Wrapper */
.auth-wrapper {
  width: 100%;
  max-width: 460px;
}

/* Box */
.auth-box {
  background: #ffffff;
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  margin: auto;
  position: relative;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(25px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Logo */
.auth-logo {
  display: block;
  max-width: 170px;
  margin: 0 auto 28px;
  padding: 12px 20px;
  border-radius: 12px;
  background-color: #1a2733;
}

/* Tabs */
.tab-buttons {
  display: flex;
  border-radius: 12px;
  border: 1px solid #e3e9ef;
  overflow: hidden;
  margin-bottom: 28px;
}

.tab-buttons button {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  background: #f5f8fc;
  color: #1a2a33;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-buttons button i {
  font-size: 16px;
}

.tab-buttons button:hover {
  background: #e8f3f1;
}

.tab-buttons button.active {
  background: #00b8a9;
  color: #fff;
}

/* Tabs Content */
.tab-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

.tab-content.hidden {
  display: none;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: #37444f;
}

input {
  padding: 12px;
  border: 1.6px solid #e3e9ef;
  border-radius: 10px;
  font-size: 15px;
  transition: border 0.3s, box-shadow 0.3s;
}

input:focus {
  border-color: #00b8a9;
  box-shadow: none;
  outline: none;
}

/* Checkbox (modern tile style) */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #4a5a68;
  position: relative;
  line-height: 1.4;
}

.checkbox-label input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #cfdce8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.checkbox-label input:checked {
  border-color: #00b8a9;
  background: #00b8a9;
}

.checkbox-label input:checked::after {
  content: "✓";
  position: absolute;
  font-size: 14px;
  color: #fff;
  left: 4px;
  top: 0px;
}

.checkbox-label a {
  color: #00b8a9;
  text-decoration: none;
}

/* Buttons */
.submit-btn {
  background-color: #00b8a9;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.submit-btn:hover {
  background-color: #009d94;
  transform: translateY(-2px);
}

.oauth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  color:#9aa8b5;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.oauth-divider::before,
.oauth-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:#e3e9ef;
}

.google-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px;
  border-radius:12px;
  border:1.6px solid #e3e9ef;
  background:#ffffff;
  color:#1a2a33;
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.google-btn i{
  color:#db4437;
  font-size:16px;
}
.google-btn:hover{
  border-color:#cdd8e4;
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
  transform:translateY(-1px);
}
/* "Passwort vergessen?" – Button im Login */
.forgot-link {
  display: block;              /* bekommt eigene Zeile */
  margin-top: -6px;
  margin-bottom: 8px;
  margin-left: auto;           /* schiebt den Button nach rechts */
  padding: 0;

  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #00b8a9;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;

  transition:
    color 0.2s ease,
    transform 0.15s ease;
}

.forgot-link:hover {
  color: #00ffe0;
  text-decoration: underline;
  transform: translateY(-1px);
}

.forgot-link:active {
  transform: translateY(0);
}

.forgot-link:focus-visible {
  outline: 2px solid #00b8a9;
  outline-offset: 2px;
}




.alt-registration p {
  margin-bottom: 8px;
  font-weight: 500;
}

.dealer-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: #00b8a9;
  font-weight: 600;
  border: 2px solid #00b8a9;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 14px;
}

.dealer-btn:hover {
  background-color: rgba(0, 184, 169, 0.08);
  border-color: #00a093;
  color: #009e92;
}

/* --- Mobile Optimierungen --- */
@media (max-width: 600px) {
  body {
    padding: 20px 12px;
    align-items: flex-start;
  }

  .auth-box {
    padding: 28px 22px;
  }

  .auth-logo {
    max-width: 140px;
    margin-bottom: 20px;
  }

  .submit-btn {
    font-size: 15px;
    padding: 12px;
  }
}






/* Händler-Box */
.alt-registration {
  margin: 20px 0 28px;
  text-align: center;
}

.alt-registration p {
  font-size: 15px;
  font-weight: 600;
  color: #9aa8b5; /* deutlich helleres Grau */
  margin-bottom: 10px;
}

.dealer-btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: transparent;
  color: #00b8a9;
  font-weight: 600;
  border: 2px solid #00b8a9;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 14px;
}

.dealer-btn:hover {
  background-color: #00b8a9;
  color: #fff;
  transform: translateY(-2px);
}








/* Passwortfeld mit Auge */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* Platz fürs Auge */
  box-sizing: border-box;
}

/* Auge sitzt im Feld rechts drin */
.password-wrapper .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #7d8a96;
  user-select: none;
  line-height: 1;
  transition: color 0.2s ease, transform 0.1s ease;
  pointer-events: auto; /* Klickbar innerhalb des Feldes */
}

.password-wrapper .toggle-password:hover {
  color: #00b8a9;
}

.password-wrapper .toggle-password:active {
  transform: translateY(-50%) scale(0.95);
}







.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  flex: 1;
}

.password-container .toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: #7a8a9a;
  font-size: 16px;
  transition: color 0.3s;
}

.password-container .toggle-password:hover {
  color: #00b8a9;
}

.password-hint {
  font-size: 12px;
  color: #6c7a89;
  margin-top: -10px;
  margin-bottom: 10px;
}














/* ----- Forgot-Password Modal ----- */

.forgot-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 32, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.forgot-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.forgot-modal-inner {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 22px 18px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.forgot-modal-inner h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #1a2a33;
}

.forgot-modal-inner p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #4a5a68;
}

.forgot-modal-inner form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forgot-modal-inner .actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.forgot-modal-inner .submit-btn {
  flex: 1;
}

.btn-secondary {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #e3e9ef;
  background: #f5f8fc;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #37444f;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-secondary:hover {
  background: #e8f0f8;
  transform: translateY(-1px);
}

.info-text {
  font-size: 12px;
  color: #4a5a68;
  min-height: 1.2em;
}
