/**
 * Panel giriş — Threecolts Hub (/v2 LoginEmailPage) ölçü ve renk uyumu — ben bağladım -hasancancap
 * Kaynak: hub.threecolts.com — OAuth pill CTA, form-separator, onboarding input, siyah submit.
 */
:root {
  --tc-border: #ced1d3;
  --tc-muted: #575a63;
  --tc-text: #000;
  --tc-bg: #fff;
  --tc-link: #135d9e;
  --tc-gray-800: #424448;
  --tc-otp-border: #696e77;
}

html.tc-hub-html,
body.tc-hub-body {
  height: 100%;
  margin: 0;
}

body.tc-hub-body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'salt' on;
  background: var(--tc-bg);
  -webkit-font-smoothing: antialiased;
}

.tc-hub-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.tc-hub-login__shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tc-hub-login__logo-link {
  display: flex;
  justify-content: center;
}

.tc-hub-login__logo {
  height: 25px;
  width: auto;
}

.tc-hub-login__column.login-email .tc-hub-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
  color: var(--tc-text);
  margin: 0 0 30px;
  text-align: center;
}

.tc-hub-login__column.login-email {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tc-hub-oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

a.tc-hub-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid var(--tc-border);
  background: var(--tc-bg);
  color: var(--tc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.tc-hub-oauth-btn:hover {
  background: #fafafa;
  border-color: #abafb5;
  color: var(--tc-text);
}

a.tc-hub-oauth-btn--apple {
  background: var(--tc-text);
  border-color: var(--tc-text);
  color: var(--tc-bg);
}

a.tc-hub-oauth-btn--apple:hover {
  background: #242528;
  border-color: #242528;
  color: var(--tc-bg);
}

.tc-hub-form-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.tc-hub-form-sep__line {
  flex: 1;
  height: 1px;
  background: var(--tc-border);
}

.tc-hub-form-sep__text {
  color: var(--tc-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.tc-hub-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.tc-hub-field {
  margin-bottom: 8px;
  width: 100%;
}

.tc-hub-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #000000;
  margin-bottom: 8px;
}

.tc-hub-field__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--tc-border);
  background: var(--tc-bg);
  font-size: 15px;
  font-weight: 400;
  color: var(--tc-text);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tc-hub-field__input:focus {
  outline: none;
  border-color: #81868f;
  box-shadow: 0 0 0 1px rgba(129, 134, 143, 0.28);
}

.tc-hub-field__password {
  position: relative;
}

.tc-hub-field__password .tc-hub-field__input {
  padding-right: 46px;
}

.tc-hub-field__eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: #696e77;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.tc-hub-field__eye:hover {
  color: var(--tc-text);
}

.tc-hub-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  margin-top: 4px;
  border-radius: 12px;
  border: none;
  background: var(--tc-text);
  color: var(--tc-bg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.tc-hub-btn-submit__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tc-hub-btn-submit__arrow {
  flex-shrink: 0;
  display: block;
}

/* Giriş tuşu ok tıklanınca sağa kayma animasyonu — kullanıcı hissiyatı — ben ekledim -hasancancap */
@keyframes tc-hub-submit-arrow-go {
  0% {
    transform: translateX(0);
  }
  55% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

.tc-hub-btn-submit.tc-hub-btn-submit--arrow-nudge .tc-hub-btn-submit__arrow {
  animation: tc-hub-submit-arrow-go 0.38s ease-out;
}

.tc-hub-btn-submit:hover:not(:disabled) {
  background: #242528;
}

.tc-hub-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tc-hub-forgot {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.tc-hub-forgot a {
  font-weight: 500;
  color: var(--tc-link);
  text-decoration: none;
}

.tc-hub-forgot a:hover {
  text-decoration: underline;
}

.tc-hub-signup {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: var(--tc-muted);
}

.tc-hub-signup a {
  font-weight: 600;
  color: var(--tc-link);
  text-decoration: underline;
}

.tc-hub-signup a:hover {
  color: #09467d;
}

/* Giriş → OTP adımı: kaybolan ve gelen bloklar için motion (sınıflar login.php’de) — ben ekledim -hasancancap */
.panel-login--step-leave {
  transition:
    opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.48s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 50% 30%;
  will-change: opacity, transform;
}

.panel-login--step-leave.is-leaving {
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
  filter: blur(2px);
  pointer-events: none;
}

.tc-hub-login__column.login-email.panel-login--otp-only {
  gap: 20px;
}

#panelOtpBlock.panel-login--step-enter {
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  will-change: opacity, transform;
}

#panelOtpBlock.panel-login--step-enter.is-entering {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .panel-login--step-leave,
  .panel-login--step-leave.is-leaving,
  #panelOtpBlock.panel-login--step-enter,
  #panelOtpBlock.panel-login--step-enter.is-entering {
    transition-duration: 0.01ms !important;
    filter: none !important;
    transform: none !important;
  }

  .panel-login--step-leave.is-leaving {
    opacity: 0;
  }

  #panelOtpBlock.panel-login--step-enter:not(.is-entering) {
    opacity: 0;
  }

  #panelOtpBlock.panel-login--step-enter.is-entering {
    opacity: 1;
  }

  .tc-hub-login__shell.panel-login--route-transition,
  .tc-hub-login__shell.panel-login--route-transition.is-route-out {
    transition-duration: 0.01ms !important;
    filter: none !important;
    transform: none !important;
  }

  .tc-hub-login__shell.panel-login--route-transition.is-route-out {
    opacity: 0;
  }
}

/* OTP doğru → yönlendirme öncesi kart kabuğu çıkışı — ben ekledim -hasancancap */
.tc-hub-login__shell.panel-login--route-transition {
  transition:
    opacity 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 50% 38%;
  will-change: opacity, transform;
}

.tc-hub-login__shell.panel-login--route-transition.is-route-out {
  opacity: 0;
  transform: translateY(-18px) scale(0.965);
  filter: blur(4px);
  pointer-events: none;
}

/* OTP — Threecolts onboarding kutuları */
.panel-otp-verify {
  max-width: 100%;
}

.panel-otp-verify__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--tc-text);
}

.panel-otp-verify__subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: var(--tc-text);
}

.panel-otp-verify__resend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tc-text);
}

.panel-otp-verify__resend-q {
  display: block;
  color: var(--tc-text);
}

.panel-otp-verify__resend--second {
  margin-top: 10px !important;
}

.btn-panel-otp-verify {
  height: 48px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: var(--tc-text) !important;
  border: none !important;
  color: var(--tc-bg) !important;
}

.tc-hub-login .panel-otp-verify .panel-otp-resend-link.tc-hub-otp-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  padding: 10px 20px;
  margin: 0;
  border-radius: 100px;
  border: 1px solid var(--tc-border);
  background: var(--tc-bg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tc-text) !important;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.tc-hub-login .panel-otp-verify .panel-otp-resend-link.tc-hub-otp-secondary-btn:hover:not(:disabled) {
  background: #fafafa;
  border-color: #abafb5;
}

.tc-hub-login .panel-otp-verify .panel-otp-resend-link.tc-hub-otp-secondary-btn:focus-visible {
  outline: 2px solid var(--tc-link);
  outline-offset: 2px;
}

.tc-hub-login .panel-otp-verify .panel-otp-resend-link.tc-hub-otp-secondary-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.panel-otp-verify__cells {
  gap: 4px !important;
}

.panel-otp-cell {
  width: 52px !important;
  height: 60px !important;
  flex: 0 0 auto !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  border: 1px solid var(--tc-otp-border) !important;
  background: var(--tc-bg) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tc-text) !important;
}

.panel-otp-cell:focus {
  outline: none !important;
  border-color: var(--tc-text) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

.tc-hub-login .alert {
  border-radius: 20px;
  border: 1px solid var(--tc-border);
}

.tc-hub-login .alert-solid-danger,
.tc-hub-login .alert-danger {
  border-color: #ffc4cd;
}
