/* ============================================
   BV AUTH (Login/Register)
   (wird zusätzlich zu frontend.css geladen)
   ============================================ */

.bv-auth {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  min-height: calc(100vh - var(--bv-header-height, 70px) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-auth-card {
  width: 100%;
  background: var(--bv-bg-card);
  border: 1px solid var(--bv-border-soft);
  border-radius: var(--bv-radius-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 2rem;
  transition: box-shadow 0.3s ease;
}

.bv-auth-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.bv-auth-head {
  margin-bottom: 2rem;
  text-align: center;
}

.bv-auth-title {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  letter-spacing: 0.04em;
  color: var(--bv-green);
  font-size: 1.75rem;
  font-weight: 700;
}

.bv-auth-subtitle {
  margin: 0;
  color: var(--bv-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Errors */
.bv-auth-errors {
  margin-bottom: 1.5rem;
  background: rgba(181, 73, 46, 0.1);
  border: 1px solid var(--bv-orange);
  border-radius: 12px;
  padding: 0.875rem 1rem;
}

.bv-auth-errors-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--bv-orange);
  font-size: 0.9rem;
  line-height: 1.6;
  list-style: disc;
}

.bv-auth-errors-list li {
  margin-bottom: 0.25rem;
}

.bv-auth-errors-list li:last-child {
  margin-bottom: 0;
}

/* Form */
.bv-auth-form {
  display: grid;
  gap: 1.25rem;
}

.bv-auth-row {
  display: grid;
  gap: 0.5rem;
}

.bv-auth-label {
  color: var(--bv-text-main);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.bv-auth-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--bv-border-soft);
  background: var(--bv-bg-soft);
  color: var(--bv-text-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-appearance: none;
  appearance: none;
}

.bv-auth-input:focus {
  border-color: var(--bv-green);
  box-shadow: 0 0 0 3px rgba(47, 91, 63, 0.1);
  background: var(--bv-bg-card);
}

.bv-auth-input::placeholder {
  color: var(--bv-text-muted);
  opacity: 0.6;
}

.bv-auth-input:active {
  transform: scale(0.99);
}

/* Actions */
.bv-auth-actions {
  margin-top: 0.5rem;
}

.bv-auth-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--bv-radius-pill);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.bv-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 91, 63, 0.25);
}

.bv-auth-submit:active {
  transform: scale(0.98);
}

/* OAuth Buttons */
.bv-auth-oauth {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bv-auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--bv-border-soft);
  background: var(--bv-bg-card);
  color: var(--bv-text-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.bv-auth-oauth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--bv-border-main);
}

.bv-auth-oauth-btn:active {
  transform: scale(0.98);
}

.bv-auth-oauth-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.bv-auth-oauth-google {
  border-color: #dadce0;
}

.bv-auth-oauth-google:hover {
  border-color: #c0c0c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bv-auth-oauth-facebook {
  border-color: #1877f2;
  background: #1877f2;
  color: #ffffff;
}

.bv-auth-oauth-facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.bv-auth-oauth-facebook svg {
  filter: brightness(0) invert(1);
}

/* Divider */
.bv-auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  text-align: center;
}

.bv-auth-divider::before,
.bv-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bv-border-soft);
}

.bv-auth-divider span {
  padding: 0 1rem;
  color: var(--bv-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer */
.bv-auth-foot {
  margin: 1.5rem 0 0;
  color: var(--bv-text-muted);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
}

.bv-auth-link {
  color: var(--bv-green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bv-auth-link:hover {
  color: var(--bv-green-soft);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
  .bv-auth {
    padding: 1.5rem 1rem 2rem;
    min-height: calc(100vh - var(--bv-header-height, 70px) - 80px);
  }

  .bv-auth-card {
    padding: 2rem 1.5rem;
  }

  .bv-auth-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .bv-auth-subtitle {
    font-size: 0.9rem;
  }

  .bv-auth-form {
    gap: 1rem;
  }

  .bv-auth-input {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
  }

  .bv-auth-submit {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .bv-auth-errors {
    padding: 0.75rem 0.875rem;
  }

  .bv-auth-errors-list {
    font-size: 0.85rem;
    padding-left: 1.1rem;
  }

  .bv-auth-oauth-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .bv-auth-oauth-btn svg {
    width: 18px;
    height: 18px;
  }
}
