/**
 * Auth split: login / register / password — modern inputs + mobile-first card
 */
:root {
  /* Smokee brand orange (aligns with theme primary / --bg-color-btn) */
  --auth-accent: #ef7d0a;
  --auth-accent-hover: #d96f09;
  --auth-accent-soft: rgba(239, 125, 10, 0.28);
  --auth-surface: #ffffff;
  --auth-surface-muted: #f1f5f9;
  --auth-border: #e2e8f0;
  --auth-border-strong: #cbd5e1;
  --auth-text: #0f172a;
  --auth-text-muted: #64748b;
  --auth-radius: 14px;
  --auth-radius-sm: 12px;
  --auth-input-min: 48px;
}

html,
body#authentication,
body#password {
  height: 100%;
}

body#authentication,
body#password {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

.page-authentication #main .page-content {
  max-width: none;
  padding-left: 0px;
  padding-right: 0px;
}

body#authentication #wrapper,
body#password #wrapper {
  background: #eef2f7;
}

body#authentication .breadcrumb,
body#password .breadcrumb {
  display: none;
}

/* ——— Shell ——— */
.auth-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: var(--auth-surface);
  max-width: none;
}

.auth-split__visual {
  flex: 1 1 50%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 36px 80px 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f8fafc;
  background-image: linear-gradient(145deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 27, 75, 0.55) 100%), var(--auth-visual-image);
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
}

.auth-split__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: radial-gradient(circle at 20% 20%, rgba(148, 163, 184, 0.5) 0%, transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(239, 125, 10, 0.22) 0%, transparent 42%);
}

.auth-split__visual-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  margin: 0px 0px 8px;
  letter-spacing: -0.02em;
}

.auth-split__visual-text {
  margin: 30px 0px 0px;
  font-size: 14px;
  line-height: 21px;
  max-width: 70%;
  color: rgba(248, 250, 252, 0.9);
}

.auth-split__panel {
  flex: 1 1 50%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 36px) clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--auth-surface);
}

.auth-split__panel-inner {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.auth-split__brand {
  display: flex;
  justify-content: center;
  margin: 0px 0px 26px;
}

.auth-split__brand img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

body#authentication .auth-split__brand img,
body#password .auth-split__brand img {
  width: 220px;
  max-width: 100%;
}

/* ——— Tabs ——— */
.auth-split__tabs {
  display: flex;
  gap: 4px;
  margin: 0px 0px 18px;
  padding: 4px;
  border-radius: var(--auth-radius);
  background: var(--auth-surface-muted);
  border: 1px solid var(--auth-border);
}

.auth-split__tab {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-text-muted);
  border-radius: var(--auth-radius-sm);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.auth-split__tab:hover {
  color: #334155;
}

.auth-split__tab[aria-selected="true"] {
  color: var(--auth-text);
  background: #fff;
  border-color: var(--auth-border);
  font-weight: 700;
  box-shadow: none !important;
}

.auth-split__tab,
.auth-split__tab:hover,
.auth-split__tab:focus,
.auth-split__tab:active {
  box-shadow: none !important;
}

.auth-split__panel-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: var(--auth-text);
  margin: 0px 0px 22px;
  letter-spacing: -0.02em;
}

.auth-split__pane {
  display: none;
}

.auth-split__pane.is-active {
  display: block;
  animation: auth-split-fade 0.28s ease;
}

@keyframes auth-split-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Modern form fields ——— */
.auth-split .form-group {
  margin-bottom: 16px;
}

.auth-split .form-control-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.auth-split .form-control,
.auth-split .custom-select,
.auth-split select.form-control {
  display: block;
  width: 100%;
  min-height: var(--auth-input-min);
  height: auto;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--auth-text);
  background-color: var(--auth-surface-muted);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-split .form-control::placeholder {
  color: #94a3b8;
}

.auth-split .form-control:hover,
.auth-split .custom-select:hover,
.auth-split select.form-control:hover {
  border-color: var(--auth-border-strong);
}

.auth-split .form-control:focus,
.auth-split .custom-select:focus,
.auth-split select.form-control:focus {
  border-color: var(--auth-accent);
  background-color: #fff;
  outline: 2px solid var(--auth-accent);
  outline-offset: 2px;
  box-shadow: none;
}

.auth-split textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.auth-split .login-form .forgot-password {
  margin-top: 22px;
  text-align: center;
}

.auth-split .login-form .forgot-password a {
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-split .login-form .forgot-password a:hover {
  text-decoration: underline;
}

.auth-split .register-form {
  max-height: none;
  overflow: visible;
  padding-right: 0px;
  margin-right: 0px;
}

.auth-split .custom-checkbox label,
.auth-split .radio-inline {
  font-size: 12px;
}

/* Register: Herr/Frau, newsletter, AGB+Datenschutz+18 — px only, comfortable wrap */
.auth-split #customer-form label.wrapper-custom-checkbox.custom-radio-inline:has(input[name="id_gender"]) .text,
.auth-split #customer-form label.wrapper-custom-checkbox:has(input[name="newsletter"]) .text,
.auth-split #customer-form label.wrapper-custom-checkbox:has(input[name="psgdpr"]) .text,
.auth-split #customer-form label.wrapper-custom-checkbox:has(input[name="customer_privacy"]) .text {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #334155;
}

.auth-split .register-form > p {
  display: none;
}

.auth-split--with-tabs .no-account {
  display: none;
}

.auth-split .form-footer {
  margin-top: 20px;
}

.auth-split #customer-form .form-footer {
  text-align: center;
}

.auth-split #customer-form .form-footer .btn-primary,
.auth-split #customer-form .form-footer .form-control-submit {
  float: none;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Flat buttons: no drop-shadow / glow (theme defaults) */
.auth-split .btn {
  box-shadow: none !important;
  text-shadow: none;
}

.auth-split .btn:hover,
.auth-split .btn:focus,
.auth-split .btn:active,
.auth-split .btn:focus-visible {
  box-shadow: none !important;
  text-shadow: none;
}

.auth-split #login-form .btn-primary,
.auth-split #customer-form .btn-primary,
.auth-split .forgotten-password .btn-primary,
.auth-split .renew-password .btn-primary,
.auth-split .auth-split__password-infos-footer .btn-primary {
  width: 100%;
  min-height: var(--auth-input-min);
  padding: 14px 20px;
  border: none;
  border-radius: var(--auth-radius-sm);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, var(--auth-accent) 0%, var(--auth-accent-hover) 100%);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.auth-split #login-form .btn-primary:hover,
.auth-split #customer-form .btn-primary:hover,
.auth-split .forgotten-password .btn-primary:hover,
.auth-split .renew-password .btn-primary:hover,
.auth-split .auth-split__password-infos-footer .btn-primary:hover {
  filter: brightness(1.04);
}

.auth-split #login-form .btn-primary:active,
.auth-split #customer-form .btn-primary:active,
.auth-split .forgotten-password .btn-primary:active,
.auth-split .renew-password .btn-primary:active,
.auth-split .auth-split__password-infos-footer .btn-primary:active {
  transform: translateY(1px);
}

.auth-split #login-form .btn-primary:focus-visible,
.auth-split #customer-form .btn-primary:focus-visible,
.auth-split .forgotten-password .btn-primary:focus-visible,
.auth-split .renew-password .btn-primary:focus-visible,
.auth-split .auth-split__password-infos-footer .btn-primary:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 3px;
}

.auth-split .form-group.row {
  margin-left: 0;
  margin-right: 0;
}

.auth-split .form-group.row > .form-control-label,
.auth-split .form-group.row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.auth-split .form-group.row > .form-control-label {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.auth-split .form-group.row > .col-md-6,
.auth-split .form-group.row > .col-md-5,
.auth-split .form-group.row > .col-md-4,
.auth-split .form-group.row > .col-md-3,
.auth-split .form-group.row > .col-md-8 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.auth-split .form-group.row > .form-control-comment {
  display: none;
}

.auth-split .forgotten-password,
.auth-split .renew-password {
  margin: 0;
}

.auth-split .forgotten-password .form-group,
.auth-split .renew-password .form-group {
  margin-bottom: 16px;
}

.auth-split .forgotten-password .form-control-label,
.auth-split .renew-password .form-control-label {
  margin-bottom: 6px;
}

.auth-split--password .auth-split__panel-inner {
  text-align: center;
  margin-top: 0;
}

.auth-split .forgotten-password .form-footer,
.auth-split .renew-password .form-footer {
  text-align: center;
}

.auth-split .forgotten-password .forgot-password {
  margin-top: 24px;
  text-align: center;
}

.auth-split .forgotten-password .forgot-password a {
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-split .forgotten-password .forgot-password a:hover {
  text-decoration: underline;
}

.auth-split--password .forgotten-password .form-control-label,
.auth-split--password .renew-password .form-control-label {
  text-align: left;
}

.auth-split--password .ps-alert-error,
.auth-split--password .ps-alert-success {
  text-align: left;
}

.auth-split--password .auth-split__password-infos-footer {
  margin-top: 20px;
}

.auth-split .help-block {
  font-size: 11px;
}

.auth-split .forgot-password,
.auth-split .no-account,
.auth-split .text-center {
  font-size: 13px;
}

.auth-split .no-account a,
.auth-split .text-center a {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-split .no-account a:hover,
.auth-split .text-center a:hover {
  text-decoration: underline;
}

/* Birthday row: compact selects */
.auth-split .birthday .form-control {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}

.auth-split .birthday br {
  display: none;
}

@media (min-width: 768px) {
  .auth-split__visual-title {
    font-size: 50px;
    color: #ffffff;
  }

  .auth-split__visual-text {
    font-size: 20px;
    line-height: 1.2;
  }
}

/* ——— Mobile: no hero strip, centered card ——— */
@media (max-width: 767px) {
  body#authentication #wrapper,
  body#password #wrapper {
    background: linear-gradient(160deg, #fff4e8 0%, #f1f5f9 42%, #e8ecf0 100%);
  }

  .auth-split {
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    background: transparent;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    justify-content: center;
    align-items: center;
  }

  .auth-split__visual {
    display: none;
  }

  .auth-split__panel {
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 0;
    justify-content: center;
    align-items: stretch;
    background: transparent;
  }

  .auth-split__panel-inner {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    padding: 28px 22px 32px;
    background: var(--auth-surface);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: none;
  }

  .auth-split__brand {
    margin: 0px 0px 20px;
  }

  .auth-split__brand img {
    width: 200px;
  }

  .auth-split .register-form {
    max-height: none;
  }

  .auth-split__tabs {
    margin-bottom: 16px;
  }

  .auth-split .form-group {
    margin-bottom: 14px;
  }

  .auth-split .form-control,
  .auth-split .custom-select,
  .auth-split select.form-control {
    min-height: 48px;
    font-size: 16px; /* avoids iOS zoom on focus */
  }

  .auth-split #login-form .btn-primary,
  .auth-split #customer-form .btn-primary,
  .auth-split .forgotten-password .btn-primary,
  .auth-split .renew-password .btn-primary,
  .auth-split .auth-split__password-infos-footer .btn-primary {
    min-height: 50px;
    font-size: 16px;
  }

  .auth-split .wrapper-custom-checkbox .text,
  .auth-split .custom-radio-inline .text {
    font-size: 12px;
    line-height: 16px;
  }

  .auth-split #customer-form label.wrapper-custom-checkbox.custom-radio-inline:has(input[name="id_gender"]) .text,
  .auth-split #customer-form label.wrapper-custom-checkbox:has(input[name="newsletter"]) .text,
  .auth-split #customer-form label.wrapper-custom-checkbox:has(input[name="psgdpr"]) .text,
  .auth-split #customer-form label.wrapper-custom-checkbox:has(input[name="customer_privacy"]) .text {
    font-size: 16px;
    line-height: 24px;
  }
}
