/* ERÜOGK Hub — İki Adımlı Doğrulama (e-posta kodu) arayüzü
 * Bağımsız bileşen: modal + Ayarlar > Güvenlik kartı.
 */

/* ---------- Modal ---------- */
.otp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.otp-modal {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text-primary);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.otp-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.otp-modal-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.15rem;
}

.otp-modal-head h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.otp-modal-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
}

.otp-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.otp-code-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  text-align: center;
}

.otp-code-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.otp-demo-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  color: #fcd34d;
  font-size: 0.82rem;
  line-height: 1.4;
}

.otp-remember-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.otp-remember-row input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
}

.otp-error {
  min-height: 1.2em;
  margin-top: 10px;
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.4;
}

.otp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.otp-actions .btn {
  flex: 1 1 auto;
}

.otp-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Ayarlar > Güvenlik kartı ---------- */
.twofa-card {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.twofa-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.twofa-card-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
}

.twofa-card-head h4 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.twofa-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.twofa-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.twofa-toggle-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
}

.twofa-toggle-row input:disabled {
  cursor: not-allowed;
}

.twofa-note {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.twofa-admin-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.twofa-admin-note i {
  color: var(--primary);
  margin-right: 4px;
}

@media (max-width: 480px) {
  .otp-modal {
    padding: 18px;
  }

  .otp-actions .btn {
    flex: 1 1 100%;
  }
}
