/* ═══════════════════════════════════════════════════════════
   Vandalierer Labs — Auth Pages (Login, Register, Passwort)
   vl-auth.css  ·  v1.0.0
   ═══════════════════════════════════════════════════════════ */

/* ── Page Background ─────────────────────────────────────── */
body.vl-auth {
  background: var(--creme);
}

body.vl-auth::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../images/bg-outdoor.png') center bottom / cover no-repeat;
  z-index: 0;
}

body.vl-auth::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 239, 230, 0.9)  0%,
    rgba(245, 239, 230, 0.54) 40%,
    rgba(245, 239, 230, 0)    100%
  );
  z-index: 1;
}

body.vl-auth .vl-header {
  position: fixed;
  z-index: 100;
}

/* ── Page Layout Override ─────────────────────────────────── */
body.vl-auth .vl-main--page {
  position: relative;
  z-index: 2;
  padding: 0;
  margin-top: 46px;
  min-height: calc(100vh - 46px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.vl-auth .vl-main--page .vl-container {
  max-width: none;
  padding: 24px 16px;
  width: 100%;
  display: flex;
  justify-content: center;
}

body.vl-auth .vl-main--page .vl-page-header,
body.vl-auth .vl-main--page .vl-page-title {
  display: none;
}

body.vl-auth .vl-main--page .vl-prose {
  padding: 0;
}

body.vl-auth .vl-main--page .vl-page-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

body.vl-auth .woocommerce {
  width: 100%;
  max-width: 400px;
}

/* ── Card ─────────────────────────────────────────────────── */
.vl-auth-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(196, 99, 58, 0.12);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(44, 31, 20, 0.08);
  width: 100%;
}

/* ── Header ───────────────────────────────────────────────── */
.vl-auth-head {
  margin-bottom: 28px;
  text-align: center;
}

.vl-auth-head h1 {
  font-family: 'DIN1451AltHeadline', 'DIN1451Alt', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--bark);
  margin: 0 0 6px;
  line-height: 1.2;
}

.vl-auth-head p {
  font-size: 13px;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.5;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.vl-auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: #f5f0ec;
  border-radius: 12px;
  padding: 4px;
}

.vl-auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  color: var(--muted-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.vl-auth-tab.is-active {
  background: #fff;
  color: var(--bark);
  box-shadow: 0 1px 4px rgba(44, 31, 20, 0.08);
}

/* ── SSO Buttons ──────────────────────────────────────────── */
.vl-auth-sso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.vl-auth-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f5f0ec;
  border: 1.5px solid var(--warm-border2);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-light);
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.6;
  font-family: inherit;
}

.vl-auth-sso-hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ── Divider ──────────────────────────────────────────────── */
.vl-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.vl-auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--warm-border);
}

.vl-auth-divider-text {
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Form ─────────────────────────────────────────────────── */
.vl-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vl-auth-field {
  display: flex;
  flex-direction: column;
}

.vl-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vl-auth-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-text);
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.04em;
}

.vl-auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.vl-auth-label-row .vl-auth-label {
  margin-bottom: 0;
}

.vl-auth-label-link {
  font-size: 11px;
  color: var(--terra);
  font-weight: 600;
  text-decoration: none;
}

.vl-auth-label-link:hover {
  text-decoration: underline;
}

.vl-auth-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid #e8d8cc;
  background: var(--warm-card);
  font-size: 13px;
  color: var(--bark);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.vl-auth-input:focus {
  border-color: var(--terra);
}

.vl-auth-input.is-error {
  border-color: var(--terra);
}

/* ── Submit Button ────────────────────────────────────────── */
.vl-auth-submit {
  margin-top: 4px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: var(--terra);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(196, 99, 58, 0.25);
  transition: opacity 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.vl-auth-submit:hover {
  opacity: 0.9;
}

.vl-auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Notices ──────────────────────────────────────────────── */
.vl-auth-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(196, 99, 58, 0.08);
  border: 1px solid rgba(196, 99, 58, 0.2);
  font-size: 13px;
  color: var(--terra);
  font-weight: 600;
  line-height: 1.5;
}

.vl-auth-error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vl-auth-error ul li + li {
  margin-top: 4px;
}

.vl-auth-notice-success {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(122, 158, 126, 0.1);
  border: 1px solid rgba(122, 158, 126, 0.3);
  font-size: 13px;
  color: #4a7a4e;
  font-weight: 600;
}

/* ── Footer link ──────────────────────────────────────────── */
.vl-auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-text);
}

.vl-auth-footer a {
  color: var(--terra);
  font-weight: 700;
  text-decoration: none;
}

.vl-auth-footer a:hover {
  text-decoration: underline;
}

/* ── Password Reset — Success State ──────────────────────── */
.vl-auth-sent {
  text-align: center;
  padding: 8px 0;
}

.vl-auth-sent-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--terra);
}

.vl-auth-sent h1 {
  font-family: 'DIN1451AltHeadline', 'DIN1451Alt', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--bark);
  margin: 0 0 10px;
}

.vl-auth-sent p {
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.6;
  margin: 0 0 24px;
}

.vl-auth-sent-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--terra);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  transition: opacity 0.15s;
}

.vl-auth-sent-btn:hover {
  opacity: 0.9;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 440px) {
  .vl-auth-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .vl-auth-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
