/*
 * Wiper'a özel stiller (tasarım: merit-wiper.html). css/core/ altındaki dosyalar HR Portal'dan aynen kopyalanır ve burada
 * değiştirilmez; Wiper'ın farkları yalnızca bu dosyadadır.
 */

/* ---------- kabuk ---------- */

/* Kenar menü marka kartı: işaret kutusunda Merit amblemi yerine logodaki W */
.merit-bcard-mark svg {
  width: 30px;
  height: auto;
  display: block;
  fill: var(--merit-text);
}

.merit-who span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Mobil üst bar: amblem yerine Wiper kelime işareti */
.merit-mtop > .wiper-word {
  width: auto;
  height: 22px;
  margin-right: auto;
}

.merit-mtop > .merit-logo-dark,
[data-bs-theme="dark"] .merit-mtop > .merit-logo-light {
  display: none;
}

[data-bs-theme="dark"] .merit-mtop > .merit-logo-dark {
  display: block;
}

/* Giriş düzeni (_AuthLayout): marka panosu solda, form sağda. Panoda haftalık rota sütunları ve logodaki W işareti çizilerek gelir */
.merit-auth.wiper-auth {
  grid-template-columns: 1fr minmax(480px, 1fr);
  grid-template-areas: 'art form';
}

.wiper-auth .merit-auth-art {
  background: radial-gradient(120% 90% at 10% 100%, #173E70 0%, #001E61 45%, #030B1F 100%);
}

[data-bs-theme="dark"] .wiper-auth .merit-auth-art {
  background: radial-gradient(120% 90% at 10% 100%, #10284F 0%, #071A3F 45%, #02070F 100%);
}

.wiper-auth .merit-auth-glow {
  top: 42%;
}

/* Yedi gün sütunu; ilki (bugün) geniş ve altın tonlu */
.wiper-auth-cols {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wiper-auth-cols i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(196, 159, 103, 0) 0%, rgba(196, 159, 103, .16) 40%, rgba(196, 159, 103, 0) 100%);
  animation: wiper-auth-col 1.2s var(--merit-ease) both;
}

.wiper-auth-cols i:nth-child(1) { left: 0; width: 12.5%; background: linear-gradient(180deg, rgba(196, 159, 103, 0) 0%, rgba(196, 159, 103, .07) 45%, rgba(196, 159, 103, 0) 100%); animation-delay: .05s; }
.wiper-auth-cols i:nth-child(2) { left: 25%; animation-delay: .1s; }
.wiper-auth-cols i:nth-child(3) { left: 37.5%; animation-delay: .15s; }
.wiper-auth-cols i:nth-child(4) { left: 50%; animation-delay: .2s; }
.wiper-auth-cols i:nth-child(5) { left: 62.5%; animation-delay: .25s; }
.wiper-auth-cols i:nth-child(6) { left: 75%; animation-delay: .3s; }
.wiper-auth-cols i:nth-child(7) { left: 87.5%; animation-delay: .35s; }

@keyframes wiper-auth-col {
  from { opacity: 0; transform: scaleY(.4); }
  to { opacity: 1; transform: none; }
}

.wiper-auth-seal {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 420px;
  aspect-ratio: 226 / 140;
  transform: translate(-50%, -50%);
}

.wiper-auth-seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Kontur viewBox biriminde: web 420 px genişlikte 1,2 px; mobilde aynı kalınlık için birim büyür */
.wiper-seal-line path {
  fill: none;
  stroke: #C49F67;
  stroke-width: 0.65px;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: merit-auth-draw 2.4s cubic-bezier(.65, 0, .35, 1) .2s forwards;
}

.wiper-seal-line path:nth-child(2) {
  animation-delay: .7s;
}

.wiper-seal-fill path {
  fill: #C49F67;
  fill-opacity: 0;
  animation: wiper-auth-fill 1.6s ease 2.4s forwards;
}

@keyframes wiper-auth-fill {
  to { fill-opacity: .12; }
}

.wiper-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wiper-auth-brand img {
  align-self: flex-start;
  width: auto;
  height: 56px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}

.wiper-auth-brand span {
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .62);
}

@media (max-width: 767.98px) {
  .wiper-auth .merit-auth-art {
    height: 340px;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
  }

  .wiper-auth .merit-auth-top {
    top: -316px;
  }

  .wiper-auth .merit-auth-glow {
    top: 148px;
    width: 440px;
    height: 440px;
  }

  .wiper-auth-seal {
    top: 148px;
    width: 160px;
  }

  .wiper-seal-line path {
    stroke-width: 1.7px;
  }

  .wiper-auth-brand {
    gap: 8px;
  }

  .wiper-auth-brand img {
    height: 36px;
  }

  .wiper-auth-brand span {
    font-size: 12px;
    line-height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiper-auth-cols i,
  .wiper-seal-line path,
  .wiper-seal-fill path {
    animation: none;
  }

  .wiper-seal-line path {
    stroke-dashoffset: 0;
  }

  .wiper-seal-fill path {
    fill-opacity: .12;
  }
}
