/* Temizlet customer auth design system */
:root {
  --auth-font: Inter, Arial, Helvetica, sans-serif;
  --auth-bg: #ffffff;
  --auth-text: #111111;
  --auth-muted: #666666;
  --auth-border: #d9d9d9;
  --auth-control-bg: #ffffff;
  --auth-secondary-bg: #f6f6f6;
  --auth-error: #c62828;
  --auth-focus: #111111;
  --auth-container: 420px;
  --auth-control-height: 56px;
  --auth-radius: 12px;
  --auth-title-size: 28px;
  --auth-body-size: 16px;
  --auth-small-size: 13px;
  --auth-space-1: 4px;
  --auth-space-2: 8px;
  --auth-space-3: 12px;
  --auth-space-4: 16px;
  --auth-space-5: 20px;
  --auth-space-6: 24px;
  --auth-space-8: 32px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: var(--auth-font);
}

body.auth-page,
body.auth-page * {
  font-family: var(--auth-font);
}

body.auth-page button,
body.auth-page input,
body.auth-page select,
body.auth-page textarea {
  font: inherit;
}

#headerContainer.auth-header-reserve {
  min-height: 72px;
  background: #000;
}

html.customer-register-mode #headerContainer .tmz-desktop-nav,
html.customer-register-mode #headerContainer .tmz-header-right,
html.customer-register-mode #headerContainer .right.tmz-header-right,
html.customer-register-mode #headerContainer .menu-icon,
html.customer-register-mode #headerContainer .tmz-fallback-menu-link {
  display: none !important;
}

html.customer-register-mode #headerContainer,
html.customer-register-mode #headerContainer .tmz-header,
html.customer-register-mode #headerContainer > header {
  background: #000 !important;
}

html.customer-register-mode #headerContainer .tmz-header,
html.customer-register-mode #headerContainer > header {
  justify-content: flex-start !important;
}

html.customer-register-mode #headerContainer .tmz-logo,
html.customer-register-mode #headerContainer .logo.tmz-logo {
  display: flex !important;
  align-items: center !important;
}

html.customer-register-mode #headerContainer .tmz-logo a,
html.customer-register-mode #headerContainer .logo.tmz-logo a {
  color: #fff !important;
}

body.auth-page .auth-shell {
  width: min(var(--auth-container), calc(100% - 64px));
  max-width: var(--auth-container);
  margin: clamp(44px, 8vh, 88px) auto 0;
  padding: 0 0 56px;
}

.auth-title {
  margin: 0 0 22px;
  color: var(--auth-text);
  font-family: var(--auth-font);
  font-size: var(--auth-title-size);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.7px;
}

.auth-subtitle {
  margin: -12px 0 24px;
  color: var(--auth-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.auth-field {
  width: 100%;
  margin-bottom: 14px;
}

.auth-field-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.auth-control {
  width: 100%;
  min-width: 0;
  min-height: var(--auth-control-height);
  height: var(--auth-control-height);
  padding: 0 15px;
  border: 2px solid var(--auth-focus);
  border-radius: var(--auth-radius);
  outline: none;
  background: var(--auth-control-bg);
  color: var(--auth-text);
  font-size: var(--auth-body-size);
  font-weight: 400;
  line-height: 1.2;
}

.auth-control::placeholder {
  color: #777777;
  opacity: 1;
}

.auth-control:focus-visible {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.auth-control[aria-invalid="true"],
.auth-control.is-error {
  border-color: var(--auth-error);
}

.auth-field-label {
  display: block;
  margin: 0 0 8px;
  color: var(--auth-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.auth-error {
  display: none;
  margin-top: 8px;
  color: var(--auth-error);
  font-size: var(--auth-small-size);
  font-weight: 500;
  line-height: 1.4;
}

.auth-error.show,
.auth-error[aria-hidden="false"] {
  display: block;
}

.auth-status {
  display: none;
  margin-top: 8px;
  color: var(--auth-muted);
  font-size: var(--auth-small-size);
  line-height: 1.45;
}

.auth-status.show {
  display: block;
}

.auth-primary {
  width: 100%;
  min-height: var(--auth-control-height);
  padding: 0 18px;
  border: 0;
  border-radius: var(--auth-radius);
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--auth-body-size);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
}

.auth-primary:disabled {
  background: #dedede;
  color: #8a8a8a;
  cursor: not-allowed;
}

.auth-secondary {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: var(--auth-secondary-bg);
  color: var(--auth-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
}

.auth-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-primary:focus-visible,
.auth-secondary:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.22);
  outline-offset: 3px;
}

.auth-country-prefix {
  flex: 0 0 94px;
  min-height: var(--auth-control-height);
  border: 2px solid var(--auth-focus);
  border-radius: var(--auth-radius);
  background: #f3f3f3;
  color: var(--auth-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  user-select: none;
}

.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.auth-actions .auth-secondary,
.auth-actions .auth-primary {
  flex: 1;
}

.auth-back-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auth-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-back-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-inline-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--auth-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-inline-link:focus-visible {
  outline: 2px solid var(--auth-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.auth-help-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.auth-legal {
  margin: 24px 0 0;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.auth-social-info {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--auth-surface, #f6f6f6);
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.5;
}
.auth-social-info[hidden] { display: none; }

.auth-legal a {
  color: var(--auth-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.auth-legal a:hover {
  text-decoration-thickness: 2px;
}

.auth-legal a:focus-visible {
  outline: 2px solid var(--auth-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.auth-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1023px) {
  body.auth-page .auth-shell,
  body.auth-page .container.auth-shell {
    width: min(var(--auth-container), calc(100% - 48px)) !important;
    max-width: var(--auth-container) !important;
    margin: 44px auto 0 !important;
    padding: 0 0 48px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  body.auth-page .auth-shell,
  body.auth-page .container.auth-shell {
    width: min(var(--auth-container), calc(100% - 64px)) !important;
    max-width: var(--auth-container) !important;
    margin: 56px auto 0 !important;
    padding: 0 0 56px !important;
  }
}

@media (max-width: 768px) {
  #headerContainer.auth-header-reserve {
    min-height: 70px;
  }

  body.auth-page .auth-shell,
  body.auth-page .container.auth-shell {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 28px 18px max(36px, env(safe-area-inset-bottom)) !important;
  }

  .auth-title {
    margin-bottom: 18px;
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .auth-field-row {
    gap: 8px;
  }

  .auth-country-prefix {
    flex-basis: 84px;
  }

  .auth-actions {
    flex-direction: column-reverse;
  }
}

@media (max-width: 380px) {
  body.auth-page .auth-shell,
  body.auth-page .container.auth-shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .auth-country-prefix {
    flex-basis: 78px;
  }
}
