/* EducaStep Tercih Robotu Üyelik Koruması */
.tercih-auth-userbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}
.tercih-auth-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 12px;
  background: #f6fbff;
  color: #0d2b4a;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 10px 28px rgba(13,43,74,.10);
  border: 1px solid #e7eef7;
  white-space: nowrap;
}
.tercih-auth-logout {
  min-height: 42px;
  padding: 8px 18px;
  border: none;
  border-radius: 12px;
  background: #c20000;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(194,0,0,.18);
}
.tercih-auth-logout:hover { filter: brightness(1.06); }

.tercih-auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(3px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tercih-auth-modal-overlay.is-open { display: flex; }
.tercih-auth-modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  position: relative;
  color: #0d2b4a;
}
.tercih-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.tercih-auth-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.tercih-auth-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff1f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.tercih-auth-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  color: #0d2b4a;
}
.tercih-auth-desc {
  margin: 4px 0 0;
  color: #64748b;
  line-height: 1.5;
  font-size: .95rem;
}
.tercih-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 5px;
  margin: 20px 0;
}
.tercih-auth-tab {
  border: none;
  border-radius: 11px;
  padding: 12px 10px;
  font-weight: 900;
  background: transparent;
  color: #334155;
  cursor: pointer;
}
.tercih-auth-tab.is-active {
  background: #c20000;
  color: #fff;
  box-shadow: 0 8px 20px rgba(194,0,0,.22);
}
.tercih-auth-form { display: none; }
.tercih-auth-form.is-active { display: block; }
.tercih-auth-field { margin-bottom: 14px; }
.tercih-auth-field label {
  display: block;
  margin: 0 0 7px;
  font-weight: 800;
  color: #0d2b4a;
  font-size: .9rem;
}
.tercih-auth-field input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #dbe4f0;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  box-sizing: border-box;
  background: #f8fafc;
}
.tercih-auth-field input:focus {
  outline: none;
  border-color: #c20000;
  box-shadow: 0 0 0 3px rgba(194,0,0,.10);
  background: #fff;
}
.tercih-auth-submit {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 13px;
  background: #c20000;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(194,0,0,.22);
}
.tercih-auth-submit:hover { filter: brightness(1.06); }
.tercih-auth-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.45;
}
.tercih-auth-message.is-error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.tercih-auth-message.is-success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.tercih-auth-lock-note {
  margin: 12px 0 0;
  text-align: center;
  color: #64748b;
  font-size: .88rem;
}
@media (max-width: 768px) {
  .tercih-auth-userbox { gap: 6px; margin-left: 6px; }
  .tercih-auth-user { padding: 7px 12px; font-size: .8rem; }
  .tercih-auth-logout { padding: 7px 12px; }
  .tercih-auth-modal { padding: 24px 18px; }
}
